FindBugs™ 1.3.8

edu.umd.cs.findbugs
Class SystemProperties

java.lang.Object
  extended by edu.umd.cs.findbugs.SystemProperties

public class SystemProperties
extends java.lang.Object

Author:
pugh

Field Summary
static boolean ASSERTIONS_ENABLED
           
 
Constructor Summary
SystemProperties()
           
 
Method Summary
static boolean getBoolean(java.lang.String arg0)
          Get boolean property, returning false if a security manager prevents us from accessing system properties
static boolean getBoolean(java.lang.String name, boolean defaultValue)
           
static java.lang.Integer getInteger(java.lang.String arg0, int arg1)
           
static java.lang.String getProperty(java.lang.String arg0)
           
static java.lang.String getProperty(java.lang.String arg0, java.lang.String arg1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASSERTIONS_ENABLED

public static final boolean ASSERTIONS_ENABLED
Constructor Detail

SystemProperties

public SystemProperties()
Method Detail

getBoolean

public static boolean getBoolean(java.lang.String arg0)
Get boolean property, returning false if a security manager prevents us from accessing system properties

Returns:
true if the property exists and is set to true

getBoolean

public static boolean getBoolean(java.lang.String name,
                                 boolean defaultValue)

getInteger

public static java.lang.Integer getInteger(java.lang.String arg0,
                                           int arg1)
Parameters:
arg0 - property name
arg1 - default value
Returns:
the int value (or arg1 if the property does not exist)

getProperty

public static java.lang.String getProperty(java.lang.String arg0)
Parameters:
arg0 - property name
Returns:
string value (or null if the property does not exist)

getProperty

public static java.lang.String getProperty(java.lang.String arg0,
                                           java.lang.String arg1)
Parameters:
arg0 - property name
arg1 - default value
Returns:
string value (or arg1 if the property does not exist)

FindBugs™ 1.3.8

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.