equal
deleted
inserted
replaced
127 * representation to be parsed |
127 * representation to be parsed |
128 * @return the boolean represented by the string argument |
128 * @return the boolean represented by the string argument |
129 * @since 1.5 |
129 * @since 1.5 |
130 */ |
130 */ |
131 public static boolean parseBoolean(String s) { |
131 public static boolean parseBoolean(String s) { |
132 return ((s != null) && s.equalsIgnoreCase("true")); |
132 return "true".equalsIgnoreCase(s); |
133 } |
133 } |
134 |
134 |
135 /** |
135 /** |
136 * Returns the value of this {@code Boolean} object as a boolean |
136 * Returns the value of this {@code Boolean} object as a boolean |
137 * primitive. |
137 * primitive. |