Package edu.umd.cs.findbugs
Class SystemProperties
java.lang.Object
edu.umd.cs.findbugs.SystemProperties
- Author:
- pugh
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final boolean
static final boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Properties
static boolean
getBoolean
(String name) Get boolean property, returning false if a security manager prevents us from accessing system propertiesstatic boolean
getBoolean
(String name, boolean defaultValue) static int
static Integer
getInteger
(String arg0, int arg1) Deprecated.static Properties
static String
getOSDependentProperty
(String name) static String
getProperty
(String name) static String
getProperty
(String name, String defaultValue) static void
loadPropertiesFromURL
(URL url) This method is public to allow clients to set system properties via anyURL
static String
static void
setProperty
(String name, String value)
-
Field Details
-
ASSERTIONS_ENABLED
public static final boolean ASSERTIONS_ENABLED -
RUNNING_IN_ECLIPSE
public static final boolean RUNNING_IN_ECLIPSE -
RUNNING_AS_IDE_PLUGIN
public static final boolean RUNNING_AS_IDE_PLUGIN
-
-
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