src/java.base/share/classes/java/lang/Boolean.java
changeset 49509 94ca39ef0b39
parent 47216 71c04702a3d5
child 57956 e0b8b019d2f5
--- a/src/java.base/share/classes/java/lang/Boolean.java	Mon Apr 02 16:39:17 2018 -0700
+++ b/src/java.base/share/classes/java/lang/Boolean.java	Mon Apr 02 17:08:00 2018 -0700
@@ -129,7 +129,7 @@
      * @since 1.5
      */
     public static boolean parseBoolean(String s) {
-        return ((s != null) && s.equalsIgnoreCase("true"));
+        return "true".equalsIgnoreCase(s);
     }
 
     /**