This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This rule would be a nice to have hint: --8<--- Useless parentheses around expressions should be removed to prevent any misunderstanding squid : UselessParenthesesCheck Useless parentheses can sometimes be misleading and so should be removed. The following code snippet illustrates this rule: return 3; // Compliant return (x); // Non-Compliant return (x + 1); // Non-Compliant int x = (y / 2 + 1); // Non-Compliant int y = (4+X) * y; // Compliant -->8--- Lightbulb => "Remove useless parentheses"