org.sonar.l10n.java.rules.squid.UselessParenthesesCheck.html Maven / Gradle / Ivy
The newest version!
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy