1 package com.puppycrawl.tools.checkstyle.checks.indentation; 20 21 import com.puppycrawl.tools.checkstyle.api.DetailAST; 22 import com.puppycrawl.tools.checkstyle.api.TokenTypes; 23 24 29 public class ImportHandler extends ExpressionHandler 30 { 31 39 public ImportHandler(IndentationCheck aIndentCheck, 40 DetailAST aAst, ExpressionHandler aParent) 41 { 42 super(aIndentCheck, "import", aAst, aParent); 43 } 44 45 48 public void checkIndentation() 49 { 50 final int lineStart = getMainAst().getLineNo(); 51 final DetailAST semi = getMainAst().findFirstToken(TokenTypes.SEMI); 52 final int lineEnd = semi.getLineNo(); 53 54 if (getMainAst().getLineNo() != lineEnd) { 55 checkLinesIndent(lineStart, lineEnd, getLevel()); 56 } 57 } 58 } 59 | Popular Tags |