blob: 19142a59006598413d2d205763f4d055a3c0a8e2 [file] [log] [blame]
package com.siyeh.igtest.bugs.suspicious_indent_after_control_statement;
public class SuspiciousIndentAfterControlStatement {
public static String suspicousIndent(int i, int j) {
switch (i) {
case 1:
if (j / 8 == 0)
return "x";
case 0:
if (j % 2 == 0)
return "even";
else
return "odd";
// with a break; the next line is okay, without it it gets the warning "suspicous indentation"
default:
throw new IllegalArgumentException("unknown function " + i);
}
}
void indent(int i) {
if (i ==9)
System.out.println("foo");
System.out.println("bar");
if (i == 10);
System.out.println("great");
}
}