Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@Nullable/@NotNull with IntelliJ IDEA, Maven & JSR 305

I really like the code inspection functionalities which are now able with either JSR 305 or Jetbrains' proprietary annotations for IntelliJ. Unfortunately both implementations (JSR 305 and Jetbrains') do not mix well:

  • IntelliJ obviously only understands its own proprietary set of annotations and integrates them quite well.
  • Using Findbugs in my Maven Build, it only supports JSR-305 annotations.

The only possible workaround might be to go for JSR-305 and use the Findbugs plugin in IntelliJ. Has anybody a better idea? (please don't say change your IDE ;) ).

Thanks Thomas

like image 521
Thomas Avatar asked Dec 17 '10 07:12

Thomas


1 Answers

This has been made possible with the 10.5 of IntelliJ: http://blogs.jetbrains.com/idea/2011/03/more-flexible-and-configurable-nullublenotnull-annotations/

like image 75
Wim Deblauwe Avatar answered Sep 19 '22 20:09

Wim Deblauwe