com.google.errorprone.bugpatterns.BugChecker Java Examples
The following examples show how to use
com.google.errorprone.bugpatterns.BugChecker.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CompilerUtil.java From NullAway with MIT License | 5 votes |
public CompilerUtil(Class<?> klass) { this.fileManager = new ErrorProneInMemoryFileManager(klass); try { fileManager.setLocation(StandardLocation.SOURCE_PATH, Collections.<File>emptyList()); } catch (IOException e) { throw new RuntimeException("unexpected IOException", e); } outputStream = new ByteArrayOutputStream(); diagnosticHelper = new DiagnosticTestHelper(); this.compiler = new BaseErrorProneJavaCompiler( ScannerSupplier.fromBugCheckerClasses( Collections.<Class<? extends BugChecker>>emptySet())); }
Example #2
Source File: TestCompiler.java From guava-beta-checker with Apache License 2.0 | 4 votes |
TestCompiler(Class<? extends BugChecker> checker) { this.checker = checker; }
Example #3
Source File: BugCheckerTransformer.java From Refaster with Apache License 2.0 | 4 votes |
public static BugCheckerTransformer create(BugChecker checker) { return new AutoValue_BugCheckerTransformer(checker); }
Example #4
Source File: BugCheckerTransformer.java From Refaster with Apache License 2.0 | votes |
abstract BugChecker checker();