Simplify boolean expression
This commit is contained in:
parent
49e8d539fb
commit
8eace0187e
|
@ -1604,7 +1604,7 @@ public class SystemUtils {
|
||||||
* @since Java 1.4
|
* @since Java 1.4
|
||||||
*/
|
*/
|
||||||
public static boolean isJavaAwtHeadless() {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue