Code block contains single statement
Reports control flow statements with a single statement in their code block and suggests removing the braces from the control flow statement body.
Example:
if (x > 0) {
System.out.println("x is positive");
}
After the quick-fix is applied:
if (x > 0) System.out.println("x is positive");
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023