I'd like an option in the Code Style settings to
insert parentheses in boolean expressions when not present.
Preferably with some added options for when to use spaces
(not in the innermost subexpr).
The point of course would be to make the code easier to read,
and not have to try to remember all precedence rules to figure
out what goes on.
A simple example
if (a != null && !b.equals("") || c != 0) {
}
would become (I hope:)
if ( ( (a != null) && (!b.equals("")) ) ||
(c != 0) ) {
}
// Per Mellqvist
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features