@Nullable / @NotNull与IntelliJ IDEA,Maven& JSR 305 [英] @Nullable/@NotNull with IntelliJ IDEA, Maven & JSR 305

查看:1061
本文介绍了@Nullable / @NotNull与IntelliJ IDEA,Maven& JSR 305的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我非常喜欢代码检查功能,现在可以使用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,它只支持 JSR-305 注释。

  • 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.

唯一可行的解​​决方法可能是 JSR-305 并使用 Findbugs 插件。
有谁有更好的主意? (请不要说改变你的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

Thanks Thomas

推荐答案

这已经完成可以使用IntelliJ 10.5: http:/ /blogs.jetbrains.com/idea/2011/03/more-flexible-and-configurable-nullublenotnull-annotations/

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆