Affects PMD Version: 6.30.0
Rule: EmptyStatementNotInLoop
https://pmd.github.io/pmd-6.30.0/pmd_rules_java_errorprone.html#emptystatementnotinloop
Description: When there is Empty If Statement, it gives alarms.
However, there is another rule which could catch Empty If Statement.
I think it would generate duplicated alarms
with the same code and the same reason.
Code Sample demonstrating the issue:
class TestEmptyStatementNotInLoop{
public static void main(String[] args){
String s = "test";
if(s == null);
}
}
Expected outcome:
Don't give any alarm.
Running PMD through: [CLI]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4