Class KeyForVisitor.KeyForOverrideChecker

Enclosing class:
KeyForVisitor

protected class KeyForVisitor.KeyForOverrideChecker extends BaseTypeVisitor<KeyForAnnotatedTypeFactory>.OverrideChecker
An override checker that does not check the lower bounds of an overriding method's type parameters.

The default for lower bounds is @UnknownKeyFor, except in java.* packages, where it is @KeyForBottom. Checking lower bounds would therefore require an annotation on the type parameter of every method that overrides a generic JDK method, such as Collection.toArray(T[]).

See the Checker Framework Manual:
Default for lower bounds