summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/test/com/siyeh/igtest/bugs/empty_statement_body/EmptyStatementBody.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/InspectionGadgets/test/com/siyeh/igtest/bugs/empty_statement_body/EmptyStatementBody.java')
-rw-r--r--plugins/InspectionGadgets/test/com/siyeh/igtest/bugs/empty_statement_body/EmptyStatementBody.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/bugs/empty_statement_body/EmptyStatementBody.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/bugs/empty_statement_body/EmptyStatementBody.java
new file mode 100644
index 000000000000..38f7601b13ab
--- /dev/null
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/bugs/empty_statement_body/EmptyStatementBody.java
@@ -0,0 +1,39 @@
+package com.siyeh.igtest.bugs.empty_statement_body;
+
+public class EmptyStatementBody
+{
+ private void foo(int j)
+ {
+ while(bar());
+ while(bar()){
+
+ }
+ for(int i = 0;i<4;i++);
+ for(int i = 0;i<4;i++)
+ {
+
+ }
+ if(bar());
+ if(bar()){
+
+ }
+ if(bar()){
+ return;
+ }
+ else
+ {
+
+ }
+ if(bar()){
+ return;
+ }
+ else;
+
+ switch (j) {}
+ }
+
+ private boolean bar()
+ {
+ return true;
+ }
+}