aboutsummaryrefslogtreecommitdiff
path: root/engine/src/core/checkers/quals/DefaultLocation.java
blob: 90dc78a0373d4314a635be65cc5f8b784e322a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package checkers.quals;

/**
 * Specifies the locations to which a {@link DefaultQualifier} annotation applies.
 *
 * @see DefaultQualifier
 */
public enum DefaultLocation {

    /** Apply default annotations to all unannotated types. */
    ALL,

    /** Apply default annotations to all unannotated types except the raw types
     * of locals. */
    ALL_EXCEPT_LOCALS,

    /** Apply default annotations to unannotated upper bounds:  both
     * explicit ones in <tt>extends</tt> clauses, and implicit upper bounds
     * when no explicit <tt>extends</tt> or <tt>super</tt> clause is
     * present. */
    // Especially useful for parameterized classes that provide a lot of
    // static methods with the same generic parameters as the class.
    UPPER_BOUNDS;

}