8
我想詮釋一個完全合格的類名@Nullable
-annotation(從Java檢查架構),例如:Java的作用域結構無法用型使用被註釋
class Demo {
private transient @Nullable org.apache.lucene.search.Query cached_results;
// ...
}
然而,這將導致錯誤:
scoping construct cannot be annotated with type-use annotation: @checkers.nullness.quals.Nullable
如何註釋完全限定的類名?