Skip to content

Commit

Permalink
Consolidate Error Prone resource handling
Browse files Browse the repository at this point in the history
Fixes #4483

PiperOrigin-RevId: 182847474
  • Loading branch information
cushon authored and Copybara-Service committed Jan 22, 2018
1 parent 838f339 commit 860af5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.google.common.collect.ImmutableList;
import com.google.devtools.build.buildjar.InvalidCommandLineException;
import com.google.devtools.build.buildjar.javac.plugins.BlazeJavaCompilerPlugin;
import com.google.errorprone.BaseErrorProneJavaCompiler;
import com.google.errorprone.ErrorProneAnalyzer;
import com.google.errorprone.ErrorProneError;
import com.google.errorprone.ErrorProneOptions;
Expand All @@ -30,7 +31,6 @@
import com.sun.tools.javac.comp.Env;
import com.sun.tools.javac.main.JavaCompiler;
import com.sun.tools.javac.util.Context;
import com.sun.tools.javac.util.JavacMessages;
import com.sun.tools.javac.util.Log;
import java.util.Arrays;
import java.util.List;
Expand Down Expand Up @@ -66,7 +66,7 @@ public ErrorPronePlugin(boolean testOnly, ScannerSupplier scannerSupplier) {

/** Registers our message bundle. */
public static void setupMessageBundle(Context context) {
JavacMessages.instance(context).add("com.google.errorprone.errors");
BaseErrorProneJavaCompiler.setupMessageBundle(context);
}

private static final String COMPILING_TEST_ONLY_CODE_ARG = "-XepCompilingTestOnlyCode";
Expand Down

0 comments on commit 860af5b

Please sign in to comment.