From 3fdf29a6707bf27597cbf9eda55555e11ee6ee0f Mon Sep 17 00:00:00 2001 From: Mike Jensen Date: Fri, 3 Jan 2014 14:23:48 -0700 Subject: [PATCH] Small simplfication on this if/else statement --- classpath/java/util/concurrent/atomic/AtomicBoolean.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/classpath/java/util/concurrent/atomic/AtomicBoolean.java b/classpath/java/util/concurrent/atomic/AtomicBoolean.java index 4543ee30d3..7583e948d6 100644 --- a/classpath/java/util/concurrent/atomic/AtomicBoolean.java +++ b/classpath/java/util/concurrent/atomic/AtomicBoolean.java @@ -21,11 +21,7 @@ public class AtomicBoolean implements java.io.Serializable { } private static boolean booleanValue(int value) { - if (value == TRUE_VALUE) { - return true; - } else { - return false; - } + return value == TRUE_VALUE; } public boolean get() {