Which @NotNull Java annotation should I use?

前端 未结 22 2826
梦如初夏
梦如初夏 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:39

    If anyone is just looking for the IntelliJ classes: you can get them from the maven repository with

    
        org.jetbrains
        annotations
        15.0
     
    

提交回复
热议问题