Repository: commons-lang
Updated Branches:
  refs/heads/master 49e8d539f -> 8eace0187


Simplify boolean expression


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/8eace018
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/8eace018
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/8eace018

Branch: refs/heads/master
Commit: 8eace0187ea2c0c1a6e3a5b5e24e701f6e23ae94
Parents: 49e8d53
Author: Benedikt Ritter <brit...@apache.org>
Authored: Sat Sep 17 17:47:54 2016 +0200
Committer: Benedikt Ritter <brit...@apache.org>
Committed: Sat Sep 17 17:47:54 2016 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/SystemUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/8eace018/src/main/java/org/apache/commons/lang3/SystemUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java 
b/src/main/java/org/apache/commons/lang3/SystemUtils.java
index e89e647..a8d860d 100644
--- a/src/main/java/org/apache/commons/lang3/SystemUtils.java
+++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java
@@ -1604,7 +1604,7 @@ public class SystemUtils {
      * @since Java 1.4
      */
     public static boolean isJavaAwtHeadless() {
-        return JAVA_AWT_HEADLESS != null ? 
JAVA_AWT_HEADLESS.equals(Boolean.TRUE.toString()) : false;
+        return Boolean.TRUE.toString().equals(JAVA_AWT_HEADLESS);
     }
 
     /**

Reply via email to