EmptyIfStmt - lpohl-Reply/pmd-github-action GitHub Wiki
Rule: EmptyIfStmt
Message
Avoid empty 'if' statements
Description
Empty If Statement finds instances where a condition is checked but nothing is done about it.
Priority
3
Example
public class Foo {
public void bar(Integer x) {
if (x == 0) {
// empty!
}
}
}