pmd: verify empty if statement example

This commit is contained in:
Andreas Dangel committed 2013-02-03 15:18:52 +01:00
1 parent 0524752248
commit b0e6810b58
1 file changed
+13
@@ -42,4 +42,17 @@ public class Foo {
}
]]></code>
</test-code>
<test-code>
<description>empty if statement with comment</description>
<expected-problems>1</expected-problems>
<code><![CDATA[
public class Foo {
void bar(int x) {
if (x == 0) {
// empty!
}
}
}
]]></code>
</test-code>
</test-data>