Class SystemProperties
java.lang.Object
edu.umd.cs.findbugs.SystemProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean(package private) static final Stringprivate static Propertiesstatic final booleanstatic final booleanprivate static final Stringprivate static final Patternprivate static final String -
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) private static voidstatic 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) private static boolean
-
Field Details
-
properties
-
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 -
OS_NAME
-
URL_REWRITE_PATTERN_STRING
-
URL_REWRITE_FORMAT
-
URL_REWRITE_PATTERN
-
-
Constructor Details
-
SystemProperties
public SystemProperties()
-
-
Method Details
-
loadPropertiesFromConfigFile
private static void loadPropertiesFromConfigFile() -
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
-
toBoolean
-
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
-