This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git

commit d02b2c53a076cdd484cd741e9b5f2248d963fb35
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue May 25 13:39:51 2021 -0400

    Use valueOf().
---
 src/test/java/org/apache/commons/lang3/SystemUtilsTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java 
b/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java
index 38f917b..eea7ae0 100644
--- a/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java
@@ -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);
         }

Reply via email to