/[classpath]/classpath/java/lang/Boolean.java
ViewVC logotype

Diff of /classpath/java/lang/Boolean.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by ericb, Fri Feb 22 20:07:40 2002 UTC revision 1.20 by ericb, Mon Feb 25 20:02:58 2002 UTC
# Line 212  public final class Boolean implements Se Line 212  public final class Boolean implements Se
212     *     *
213     * @param name the property name to look up     * @param name the property name to look up
214     * @return true if the property resulted in "true"     * @return true if the property resulted in "true"
215       * @throws SecurityException if accessing the system property is forbidden
216     * @see System#getProperty(String)     * @see System#getProperty(String)
217     */     */
218    public static boolean getBoolean(String name)    public static boolean getBoolean(String name)
219    {    {
220      String val = System.getProperty(name);      if (name == null || "".equals(name))
221      return "true".equalsIgnoreCase(val);        return false;
222        return "true".equalsIgnoreCase(System.getProperty(name));
223    }    }
224  }  }

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26