Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small simplfication on this if/else statement

  • Loading branch information...
commit 3fdf29a6707bf27597cbf9eda55555e11ee6ee0f 1 parent d8b0db9
Mike Jensen authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 classpath/java/util/concurrent/atomic/AtomicBoolean.java
View
6 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() {
Please sign in to comment.
Something went wrong with that request. Please try again.