问题描述
我非常喜欢代码检查功能,现在可以使用JSR 305或Jetbrains的IntelliJ专有注释。
不幸的是两个实现(JSR 305和Jetbrains')混合不好:
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显然只能理解它自己的专有集合注释并将它们很好地集成。
- 在我的Maven Build中使用Findbugs,它只支持注释。
- 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.
唯一可行的解决方法可能是并使用插件。
有谁有更好的主意? (请不要说改变你的IDE;))。
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 ;) ).
谢谢
Thomas
ThanksThomas
推荐答案
这已经完成可以使用IntelliJ 10.5:
This has been made possible with the 10.5 of IntelliJ: http://blogs.jetbrains.com/idea/2011/03/more-flexible-and-configurable-nullublenotnull-annotations/
这篇关于@Nullable / @NotNull与IntelliJ IDEA,Maven& JSR 305的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!