Synopsis: | Avoid empty 'if' statements |
Language: | Java |
Severity Level: | 2 |
Category: | Basic |
Description: |
Empty If Statement finds instances where a condition is checked but nothing is done about it.public class Foo { void bar(int x) { if (x == 0) { // empty! } } } |