Simplify boolean expression

This commit is contained in:
Benedikt Ritter 2016-09-17 17:47:54 +02:00
parent 49e8d539fb
commit 8eace0187e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**