Class SystemGetPropertyHandler
java.lang.Object
org.checkerframework.checker.nullness.SystemGetPropertyHandler
Utility class for handling 
System.getProperty(String) and related invocations.
 The result of the method call is assumed to be non-null if the argument is a literal key that
 is guaranteed to be present in the system properties (according to the documentation of System.getProperty(String)), as in System.getProperties("line.separator").
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Collection<String>System properties that are defined at startup on every JVM.
- 
Constructor SummaryConstructorsConstructorDescriptionSystemGetPropertyHandler(ProcessingEnvironment env, NullnessAnnotatedTypeFactory factory, boolean permitClearProperty) Creates a SystemGetPropertyHandler.
- 
Method SummaryModifier and TypeMethodDescriptionvoidApply rules regarding System.getProperty and related methods.
- 
Field Details- 
predefinedSystemPropertiesSystem properties that are defined at startup on every JVM.This list is from the Javadoc of System.getProperties, for Java 17. 
 
- 
- 
Constructor Details- 
SystemGetPropertyHandlerpublic SystemGetPropertyHandler(ProcessingEnvironment env, NullnessAnnotatedTypeFactory factory, boolean permitClearProperty) Creates a SystemGetPropertyHandler.- Parameters:
- env- the processing environment
- factory- the factory for constructing and looking up types
- permitClearProperty- if true, client code may clear system properties, and this object does nothing
 
 
- 
- 
Method Details- 
handleApply rules regarding System.getProperty and related methods.- Parameters:
- tree- a method invocation
- method- the method being invoked
 
 
-