mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
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:
committed by
GitHub
parent
e7c3d39059
commit
d569156a6b
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user