Class QualifierDefaults

java.lang.Object
org.checkerframework.framework.util.defaults.QualifierDefaults

public class QualifierDefaults extends Object
Determines the default qualifiers on a type. Default qualifiers are specified via the DefaultQualifier annotation.

Type variable uses have two possible defaults. If flow sensitive type refinement is enabled, unannotated top-level type variable uses receive the same default as local variables. All other type variable uses are defaulted using the TYPE_VARIABLE_USE default.


 <T> void method(USE T tIn) {
     LOCAL T t = tIn;
 }
 
The parameter tIn will be defaulted using the TYPE_VARIABLE_USE default. The local variable t will be defaulted using the LOCAL_VARIABLE default, in order to allow dataflow to refine T.
See Also: