Package edu.umd.cs.findbugs
Class SystemProperties
java.lang.Object
edu.umd.cs.findbugs.SystemProperties
- Author:
- pugh
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Propertiesstatic booleangetBoolean(String name) Get boolean property, returning false if a security manager prevents us from accessing system propertiesstatic booleangetBoolean(String name, boolean defaultValue) static intstatic IntegergetInteger(String arg0, int arg1) Deprecated.static Propertiesstatic StringgetOSDependentProperty(String name) static StringgetProperty(String name) static StringgetProperty(String name, String defaultValue) static voidloadPropertiesFromURL(URL url) This method is public to allow clients to set system properties via anyURLstatic Stringstatic voidsetProperty(String name, String value)
-
Field Details
-
ASSERTIONS_ENABLED
public static final boolean ASSERTIONS_ENABLED -
RUNNING_IN_ECLIPSE
public static final boolean RUNNING_IN_ECLIPSE
-
-
Constructor Details
-
SystemProperties
public SystemProperties()
-
-
Method Details
-
getLocalProperties
-
getAllProperties
-
loadPropertiesFromURL
This method is public to allow clients to set system properties via anyURL- Parameters:
url- an url to load system properties from, may be nullerrorMsg
-
getBoolean
Get boolean property, returning false if a security manager prevents us from accessing system properties(incomplete) list of known system properties
- "report_TESTING_pattern_in_standard_detectors" - default is false
- Returns:
- true if the property exists and is set to true
-
getBoolean
-
getInteger
Deprecated.UsegetInt(String,int)instead- Parameters:
arg0- property namearg1- default value- Returns:
- the int value (or arg1 if the property does not exist)
-
getInt
- Parameters:
name- property namedefaultValue- default value- Returns:
- the int value (or defaultValue if the property does not exist)
-
getOSDependentProperty
- Parameters:
name- property name- Returns:
- string value (or null if the property does not exist)
-
getProperty
- Parameters:
name- property name- Returns:
- string value (or null if the property does not exist)
-
setProperty
-
getProperty
- Parameters:
name- property namedefaultValue- default value- Returns:
- string value (or defaultValue if the property does not exist)
-
rewriteURLAccordingToProperties
-
getInt(String,int)instead