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

本秂侑毒 提交于 2019-12-05 13:23:21

It's now integrated in Eclipse Kepler.

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

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

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.

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