fix for SF_SWITCH_FALLTHROUGH. Issue #778

This commit is contained in:
Roman Ivanov 2015-04-06 23:16:29 -07:00
parent 9619cf2728
commit cce20fc3c7
1 changed files with 4 additions and 2 deletions

View File

@ -291,7 +291,8 @@ public class ImportOrderCheck
lastGroup = Integer.MIN_VALUE;
lastImport = "";
}
// no break;
doVisitToken(ident, isStatic, !lastImportStatic && isStatic);
break;
case ABOVE:
// previous non-static but current is static
@ -308,7 +309,8 @@ public class ImportOrderCheck
lastGroup = Integer.MIN_VALUE;
lastImport = "";
}
// no break;
doVisitToken(ident, isStatic, lastImportStatic && !isStatic);
break;
case UNDER:
// previous static but current is non-static