fixed check style error

This commit is contained in:
pengys5 2017-09-03 16:39:26 +08:00
parent a9ff88fe95
commit 2178a736a9
1 changed files with 1 additions and 5 deletions

View File

@ -21,11 +21,7 @@ public abstract class Window {
}
public boolean trySwitchPointer() {
if (windowSwitch.incrementAndGet() == 1 && !getLast().isReading()) {
return true;
} else {
return false;
}
return windowSwitch.incrementAndGet() == 1 && !getLast().isReading();
}
public void trySwitchPointerFinally() {