Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,22 @@
* A polymorphic qualifier for the non-null type system.
*
* <p>Any method written using {@link PolyNull} conceptually has two versions: one in which every
* instance of {@link PolyNull} has been replaced by {@link NonNull}, and one in which every
* instance of {@link PolyNull} has been replaced by {@link Nullable}.
* instance of {@link PolyNull} has been replaced by {@link org.checkerframework.checker.nullness.qual.NonNull}, and one in which every
* instance of {@link PolyNull} has been replaced by {@link org.checkerframework.checker.nullness.qual.Nullable}.
*
* @checker_framework.manual #nullness-checker Nullness Checker
* @checker_framework.manual #qualifier-polymorphism Qualifier polymorphism
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
@PolymorphicQualifier(Nullable.class)
public @interface PolyNull {}
@PolymorphicQualifier(org.checkerframework.checker.nullness.qual.Nullable.class)
public @interface PolyNull {
/**
* The value of a polymorphic qualifier. It is used to distinguish different polymorphic
* qualifiers.
*
* @return the value of the annotation
*/
String value() default "";
}
Loading