// This rule specifies whether braces should
be around
// single line statements. This is allowed but could cause
// could be missunderstood in badly indented code.
...
// the 2nd line after the if statement could be assumed to
// belong to the if block
if (name.equals("Bill"))
name.replace("Bill", "Linus");
name.append("is cool");
name.print();
...
...
// this code is also bad indented but the braces make it
// more clear to the if block
if (name.equals("Bill"))
{
name.replace("Bill", "Linus");
}
name.append("is cool");
name.print();
...