NeedBraces allowSingleLineIf still broken

34 views
Skip to first unread message

Glenn Hollingsworth

unread,
Feb 27, 2015, 7:33:58 PM2/27/15
to checksty...@googlegroups.com
Is there any update on allowing single line if statements without braces in the Need Braces check?

The documentation says to provide FALSE for the property, but the default value is false. If I set it to true (or false/FALSE), it still says I need braces for a single line if, like this:

public class Test {
    public static void main(String[] args) {
        int x = 10;
        if (x <= 10) x++;
        System.out.println(x);
    }
}


Thanks!

Roman Ivanov

unread,
Mar 3, 2015, 6:08:42 PM3/3/15
to Glenn Hollingsworth, checksty...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages