Class SystemProperties
java.lang.Object
edu.umd.cs.findbugs.SystemProperties
- Author:
- pugh
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic 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 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 voidremoveProperty(String name) static 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 -
RUNNING_AS_IDE_PLUGIN
public static final boolean RUNNING_AS_IDE_PLUGIN
-
-
Constructor Details
-
SystemProperties
public SystemProperties()
-
-
Method Details
-
getLocalProperties
-
getAllProperties
-
loadPropertiesFromURL
-
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
-
getInt
- Parameters:
name- property namedefaultValue- default value- Returns:
- the int value (or defaultValue if the property does not exist)
-
getOSDependentProperty
-
getProperty
-
setProperty
-
removeProperty
-
getProperty
-
rewriteURLAccordingToProperties
-