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 IntegergetInteger(String arg0, int arg1) Deprecated.static 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
-
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
-
getProperty
-
setProperty
-
removeProperty
-
getProperty
-
rewriteURLAccordingToProperties
-
getInt(String,int)instead