I want use @Nullable
annotation to eliminate NullPointerExceptions
.
I found some tutorials on the net, I noticed that this annotation comes from the package javax.annotation.Nullable
;
but when I import it a compilation error is generated: cannot find symbol
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
In case someone has this while trying to compile an Android project, there is an alternative Nullable implementation in
android.support.annotation.Nullable
. So take care which package you've referenced in yourimport
s.The artifact has been moved from
net.sourceforge.findbugs
to