Introduce ErrorProneRuntimeClasspath check (#882)

Prefer "type-safe" type references were possible, but use string
literals if the references type may not be available at runtime.
This commit is contained in:
Stephan Schroevers
2023-12-20 22:14:22 +01:00
committed by GitHub
parent e7c3d39059
commit d569156a6b
15 changed files with 516 additions and 118 deletions

View File

@@ -67,7 +67,7 @@ public final class BugPatternTestExtractor implements Extractor<TestCases> {
"com.google.errorprone.CompilationTestHelper",
"com.google.errorprone.BugCheckerRefactoringTestHelper")
.named("newInstance")
.withParameters("java.lang.Class", "java.lang.Class");
.withParameters(Class.class.getCanonicalName(), Class.class.getCanonicalName());
private static final Matcher<ExpressionTree> IDENTIFICATION_SOURCE_LINES =
instanceMethod()
.onDescendantOf("com.google.errorprone.CompilationTestHelper")