Reports any if, while or for statements without braces. Braces make the code easier to read and help prevent errors when modifying the code.

Example:

  if (x > 0) System.out.println("x is positive");

The quick fix for the inspection wraps the statement body with braces:

  if (x > 0) {
    System.out.println("x is positive");
  }