Which @NotNull Java annotation should I use?

前端 未结 22 2778
梦如初夏
梦如初夏 2020-11-22 02:44

I\'m looking to make my code more readable as well as use tooling like IDE code inspection and/or static code analysis (FindBugs and Sonar) to avoid NullPointerExceptions.

22条回答
  •  无人及你
    2020-11-22 03:33

    Eclipse has also its own annotations.

    org.eclipse.jdt.annotation.NonNull
    

    See at http://wiki.eclipse.org/JDT_Core/Null_Analysis for details.

提交回复
热议问题