IntelliJ IDEA 11.1 Web Help

10.0+

IntelliJ IDEA makes it possible to analyse the source code for the elements that can become null, and automatically annotate them.

To automatically annotate nullable and non-null elements
  1. Make sure that annotations.jar is added to your module.
  2. On the main menu, choose Analyze | Infer Nullity.
  3. In the Specify Infer Nullity Scope dialog box, select the scope where you want to infer nullity: the entire project, the current file, etc.

See Also

Procedures:

Reference:

Web Resources: