@Documented @Target(value={TYPE_USE,TYPE_PARAMETER}) @Retention(value=RUNTIME) @PolymorphicQualifier(value=UpperBoundUnknown.class) public @interface PolyIndex
Writing @PolyIndex
is equivalent to writing @PolyUpperBound
@PolyLowerBound
, and that is how it is treated internally by the checker.
Thus, if you write an @PolyIndex
annotation, you might see warnings about
@PolyUpperBound
or @PolyLowerBound
.
PolyUpperBound
,
PolyLowerBound