blob: 7d9886bddf547c0ffb641a9394ac0f59081356cf [file] [log] [blame]
import com.sun.javadoc.Doc;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
public class JavadocJdkAnnotations {
@Nullable Object f = null;
@SuppressWarnings("removal")
void testPureAnnotation(Doc d) {
f = "non-null value";
d.isIncluded();
@NonNull Object x = f;
d.tags();
// :: error: (assignment)
@NonNull Object y = f;
}
}