I want to annotate a fully qualified class name with @Nullable
-annotation (from the Java Checker Framework), e.g.:
class Demo {
private transient @Nullable org.apache.lucene.search.Query cached_results;
// ...
}
However this results in the error:
scoping construct cannot be annotated with type-use annotation: @checkers.nullness.quals.Nullable
How can I annotate fully qualified class names?