mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-09 07:35:49 +00:00
6961865: javadoc for Boolean.valueOf(String) with null argument not clearly specified
Reviewed-by: shade
This commit is contained in:
parent
e04ad243e0
commit
c1630c7e87
@ -117,7 +117,9 @@ public final class Boolean implements java.io.Serializable,
|
||||
* 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 @@ public final class Boolean implements java.io.Serializable,
|
||||
* 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 @@ public final class Boolean implements java.io.Serializable,
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user