Skip to content

Commit

Permalink
tiny code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaber committed Jun 24, 2017
1 parent 633a1ba commit 750e407
Showing 1 changed file with 10 additions and 11 deletions.
Expand Up @@ -274,20 +274,19 @@ private void runOnFileLineByLine(String filename, String encoding) throws IOExce
}
}

private int handleLine(ApiPrintMode mode, int lineOffset, StringBuilder sb) throws IOException {
private void handleLine(ApiPrintMode mode, int lineOffset, StringBuilder sb) throws IOException {
int matches = 0;
String s = filterXML(sb.toString());
if (options.isApplySuggestions()) {
System.out.print(Tools.correctText(s, lt));
} else if (profileRules) {
matches += Tools.profileRulesOnLine(s, lt, currentRule);
} else if (!options.isTaggerOnly()) {
matches += CommandLineTools.checkText(s, lt, options.isXmlFormat(), options.isJsonFormat(), -1,
lineOffset, matches, mode, options.isListUnknown(), Collections.<String>emptyList());
} else {
CommandLineTools.tagText(s, lt);
}
return matches;
System.out.print(Tools.correctText(s, lt));
} else if (profileRules) {
Tools.profileRulesOnLine(s, lt, currentRule);
} else if (!options.isTaggerOnly()) {
CommandLineTools.checkText(s, lt, options.isXmlFormat(), options.isJsonFormat(), -1,
lineOffset, matches, mode, options.isListUnknown(), Collections.emptyList());
} else {
CommandLineTools.tagText(s, lt);
}
}

private boolean isBreakPoint(String line) {
Expand Down

0 comments on commit 750e407

Please sign in to comment.