I want to annotate the full class name with @Nullable -nnation (from the Java Checker Framework), for example:
class Demo { private transient @Nullable org.apache.lucene.search.Query cached_results;
However, this leads to an error:
scoping construct cannot be annotated with type-use annotation: @checkers.nullness.quals.Nullable
How can I annotate fully qualified class names?
java java-8 annotations checker-framework
Kasper van den Berg
source share