Permalink
Browse files

Small simplfication on this if/else statement

  • Loading branch information...
1 parent d8b0db9 commit 3fdf29a6707bf27597cbf9eda55555e11ee6ee0f Mike Jensen committed Jan 3, 2014
Showing with 1 addition and 5 deletions.
  1. +1 −5 classpath/java/util/concurrent/atomic/AtomicBoolean.java
@@ -21,11 +21,7 @@ private static int intValue(boolean value) {
}
private static boolean booleanValue(int value) {
- if (value == TRUE_VALUE) {
- return true;
- } else {
- return false;
- }
+ return value == TRUE_VALUE;
}
public boolean get() {

0 comments on commit 3fdf29a

Please sign in to comment.