blob: 016d05961110d1bd9547b18f346f0a273237aca0 [file] [log] [blame]
public class UnannoPrimitivesDefaults {
@org.checkerframework.framework.qual.DefaultQualifier(
org.checkerframework.checker.nullness.qual.NonNull.class)
class Decl {
// The return type is not annotated with @NonNull, because
// the implicit annotation for @Primitive takes precedence.
int test() {
return 5;
}
}
class Use {
Decl d = new Decl();
int x = d.test();
}
}