edu.umd.cs.findbugs

Class SystemProperties

public class SystemProperties extends Object

Author: pugh

Field Summary
static booleanASSERTIONS_ENABLED
Method Summary
static booleangetBoolean(String arg0)
Get boolean property, returning false if a security manager prevents us from accessing system properties
static booleangetBoolean(String name, boolean defaultValue)
static IntegergetInteger(String arg0, int arg1)
static StringgetProperty(String arg0)
static StringgetProperty(String arg0, String arg1)

Field Detail

ASSERTIONS_ENABLED

public static final boolean ASSERTIONS_ENABLED

Method Detail

getBoolean

public static boolean getBoolean(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(String name, boolean defaultValue)

getInteger

public static Integer getInteger(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 String getProperty(String arg0)

Parameters: arg0 property name

Returns: string value (or null if the property does not exist)

getProperty

public static String getProperty(String arg0, String arg1)

Parameters: arg0 property name arg1 default value

Returns: string value (or arg1 if the property does not exist)

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