We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Affects PMD Version: 6.x
Rule: UselessOperationOnImmutable
Description:
This is already fixed with PMD 7.0.0-rc1. Found via #3123
Code Sample demonstrating the issue:
public class TestCase { public void method1(String s) { s.trim(); } public void method2() { String.valueOf(0); } public void method3() { String.valueOf(0).trim(); } }
Expected outcome:
PMD should report a violation at lines 3,6,9 but doesn't. This is a false-negative.
The text was updated successfully, but these errors were encountered:
afe1613
Successfully merging a pull request may close this issue.
Affects PMD Version: 6.x
Rule: UselessOperationOnImmutable
Description:
This is already fixed with PMD 7.0.0-rc1.
Found via #3123
Code Sample demonstrating the issue:
Expected outcome:
PMD should report a violation at lines 3,6,9 but doesn't. This is a false-negative.
The text was updated successfully, but these errors were encountered: