Refactor CompilerRunnerUtil

Eliminate code duplication, add NotNull, make everything private, etc
This commit is contained in:
Alexander Udalov
2014-12-15 12:47:02 +03:00
parent b8328f9190
commit 45c6d486fc
2 changed files with 63 additions and 62 deletions
@@ -54,7 +54,7 @@ public abstract class CLICompiler<A extends CommonCompilerArguments> {
@SuppressWarnings("UnusedDeclaration") // Used via reflection in CompilerRunnerUtil#invokeExecMethod
@NotNull
public ExitCode execAndOutputHtml(@NotNull PrintStream errStream, @NotNull Services services, @NotNull String... args) {
public ExitCode execAndOutputXml(@NotNull PrintStream errStream, @NotNull Services services, @NotNull String... args) {
return exec(errStream, services, MessageRenderer.XML, args);
}