Is there a good Eclipse plugin for checking @Nonnull and @Nullable annotations?

百般思念 提交于 2019-12-07 09:58:42

问题


The checking of the @Nonnull and @Nullable annotations in Eclipse is an early beta. The largest problem is that there it no knowing over the null behavior of the Java API.

Are there any other plugins that are better currently?


回答1:


It's now integrated in Eclipse Kepler.




回答2:


I have found that FindBugs works well and is easy to use. FindBugs Plugin




回答3:


Get Eclipse SDK 3.7(or Indigo) Enter this update URL: http://download.eclipse.org/objectteams/updates/contrib Select and install : JDT Null Annotation Checker (Early Access) Object Teams Equinox Integration




回答4:


The largest problem is that there it no knowing over the null behavior of the Java API.

The lack of annotated libraries continues to be a problem with Eclipse's built in nullness cehcking.

Another nullness-checking tool is the Checker Framework, which ships with thousands of annotated APIs from the JDK. The Checker Framework also does more accurate checking. Eclipse and FindBugs are bug detectors that find some null pointer errors, but the Checker Framework is a verifier that gives a guarantee of no null pointer errors.

The Checker Framework has an Eclipse plugin. Eclipse' built-in nullness checking has slicker IDE integration, but you can use the Checker Framework Eclipse plugin if you want more powerful checking.



来源:https://stackoverflow.com/questions/7659637/is-there-a-good-eclipse-plugin-for-checking-nonnull-and-nullable-annotations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!