if
, while
, or for
statements without braces.
Braces make the code easier to read and help prevent errors.
Example:
if (x > 0) System.out.println("x is positive");
The quick-fix wraps the statement body with braces:
if (x > 0) {
System.out.println("x is positive");
}