import org.checkerframework.checker.nullness.qual.*; class AnonymousClass { class Bound {} void test() { // :: error: (type.argument.type.incompatible) new Bound<@Nullable String>() {}; } // The dummy parameter tests ParamApplier void test(Object dummy) { // :: error: (type.argument.type.incompatible) new Bound<@Nullable String>() {}; } }