All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rules.NeedBraces.md Maven / Gradle / Ivy


Check that code blocks are surrounded by braces.

Valid:
````
if (obj.isValid()) {
    return true;
}

while (obj.isValid()) {
    return true;
}

do {
    this.notify();
} while (o != null);

for (int i = 0; ;) {
    this.notify();
}
````

Invalid:
````
if (obj.isValid()) return true;

while (obj.isValid()) return true;

do this.notify(); while (o != null);

for (int i = 0; ;) this.notify();
````




© 2015 - 2024 Weber Informatics LLC | Privacy Policy