6961865: javadoc for Boolean.valueOf(String) with null argument not clearly specified
Reviewed-by: shade
--- a/jdk/src/java.base/share/classes/java/lang/Boolean.java Thu May 26 13:06:54 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/Boolean.java Thu May 26 13:18:32 2016 -0700
@@ -117,7 +117,9 @@
* Parses the string argument as a boolean. The {@code boolean}
* returned represents the value {@code true} if the string argument
* is not {@code null} and is equal, ignoring case, to the string
- * {@code "true"}. <p>
+ * {@code "true"}.
+ * Otherwise, a false value is returned, including for a null
+ * argument.<p>
* Example: {@code Boolean.parseBoolean("True")} returns {@code true}.<br>
* Example: {@code Boolean.parseBoolean("yes")} returns {@code false}.
*
@@ -165,6 +167,8 @@
* specified string. The {@code Boolean} returned represents a
* true value if the string argument is not {@code null}
* and is equal, ignoring case, to the string {@code "true"}.
+ * Otherwise, a false value is returned, including for a null
+ * argument.
*
* @param s a string.
* @return the {@code Boolean} value represented by the string.
@@ -241,14 +245,12 @@
/**
* Returns {@code true} if and only if the system property named
- * by the argument exists and is equal to the string {@code
- * "true"}. (Beginning with version 1.0.2 of the Java™
- * platform, the test of this string is case insensitive.) A
- * system property is accessible through {@code getProperty}, a
- * method defined by the {@code System} class.
- * <p>
- * If there is no property with the specified name, or if the specified
- * name is empty or null, then {@code false} is returned.
+ * by the argument exists and is equal to, ignoring case, the
+ * string {@code "true"}.
+ * A system property is accessible through {@code getProperty}, a
+ * method defined by the {@code System} class. <p> If there is no
+ * property with the specified name, or if the specified name is
+ * empty or null, then {@code false} is returned.
*
* @param name the system property name.
* @return the {@code boolean} value of the system property.