Changed indentation of switch-case, imports, issue #512

This commit is contained in:
alexkravin 2015-01-22 16:30:29 +04:00
parent 5a1cae74d6
commit f0c4e7d6f2
1 changed files with 26 additions and 26 deletions

View File

@ -230,37 +230,37 @@ public class ImportOrderCheck
}
switch (getAbstractOption()) {
case TOP:
if (!isStatic && lastImportStatic) {
lastGroup = Integer.MIN_VALUE;
lastImport = "";
}
// no break;
case TOP:
if (!isStatic && lastImportStatic) {
lastGroup = Integer.MIN_VALUE;
lastImport = "";
}
// no break;
case ABOVE:
// previous non-static but current is static
doVisitToken(ident, isStatic, (!lastImportStatic && isStatic));
break;
case ABOVE:
// previous non-static but current is static
doVisitToken(ident, isStatic, (!lastImportStatic && isStatic));
break;
case INFLOW:
// previous argument is useless here
doVisitToken(ident, isStatic, true);
break;
case INFLOW:
// previous argument is useless here
doVisitToken(ident, isStatic, true);
break;
case BOTTOM:
if (isStatic && !lastImportStatic) {
lastGroup = Integer.MIN_VALUE;
lastImport = "";
}
// no break;
case BOTTOM:
if (isStatic && !lastImportStatic) {
lastGroup = Integer.MIN_VALUE;
lastImport = "";
}
// no break;
case UNDER:
// previous static but current is non-static
doVisitToken(ident, isStatic, (lastImportStatic && !isStatic));
break;
case UNDER:
// previous static but current is non-static
doVisitToken(ident, isStatic, (lastImportStatic && !isStatic));
break;
default:
break;
default:
break;
}
lastImportLine = ast.findFirstToken(TokenTypes.SEMI).getLineNo();