use of com.sun.tools.javac.api.BasicJavacTask in project error-prone by google.
the class ErrorProneJavacPlugin method init.
@Override
public void init(JavacTask javacTask, String... args) {
Context context = ((BasicJavacTask) javacTask).getContext();
BaseErrorProneJavaCompiler.setupMessageBundle(context);
javacTask.addTaskListener(ErrorProneAnalyzer.createByScanningForPlugins(BuiltInCheckerSuppliers.defaultChecks(), ErrorProneOptions.processArgs(args), context));
}
Aggregations