Use valueOf().

This commit is contained in:
Gary Gregory 2021-05-25 13:39:51 -04:00
parent b4a43380f1
commit d02b2c53a0
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ public class SystemUtilsTest {
final String expectedStringValue = System.getProperty("java.awt.headless");
final String expectedStringValueWithDefault = System.getProperty("java.awt.headless", "false");
assertNotNull(expectedStringValueWithDefault);
final boolean expectedValue = Boolean.valueOf(expectedStringValue).booleanValue();
final boolean expectedValue = Boolean.parseBoolean(expectedStringValue);
if (expectedStringValue != null) {
assertEquals(expectedStringValue, SystemUtils.JAVA_AWT_HEADLESS);
}