0

I'm trying to use @NonNull annotations in my code, but NetBeans won't build it, complaining it cannot find symbol "NonNull". Is there a package I need to import?

PopKernel
  • 4,110
  • 5
  • 29
  • 51
  • Possible duplicate of [Can't find @Nullable inside javax.annotation.\*](https://stackoverflow.com/questions/19030954/cant-find-nullable-inside-javax-annotation) – Brydenr Sep 07 '17 at 15:42
  • Those answers though, they seem to concern Maven and Gradle, which I don't believe I'm using? – PopKernel Sep 07 '17 at 15:43
  • You can try importing `org.netbeans.api.annotations.common`, but I can't see why NetBeans doesn't include it's own common annotations package. – MarsAtomic Sep 07 '17 at 15:55

0 Answers0