diff --git a/core/src/test/java/com/google/errorprone/bugpatterns/collectionincompatibletype/TruthIncompatibleTypeTest.java b/core/src/test/java/com/google/errorprone/bugpatterns/collectionincompatibletype/TruthIncompatibleTypeTest.java index 81fa611eb63..2383837220e 100644 --- a/core/src/test/java/com/google/errorprone/bugpatterns/collectionincompatibletype/TruthIncompatibleTypeTest.java +++ b/core/src/test/java/com/google/errorprone/bugpatterns/collectionincompatibletype/TruthIncompatibleTypeTest.java @@ -29,8 +29,8 @@ import com.google.common.truth.extensions.proto.ProtoSubject; import com.google.errorprone.CompilationTestHelper; import com.google.testing.junit.testparameterinjector.TestParameter; -import com.google.testing.junit.testparameterinjector.TestParameter.TestParameterValuesProvider; import com.google.testing.junit.testparameterinjector.TestParameterInjector; +import com.google.testing.junit.testparameterinjector.TestParameterValuesProvider; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import org.junit.Test; @@ -668,23 +668,23 @@ private static String getOffensiveLine(Method method) { } } - private static final class SubjectMethods implements TestParameterValuesProvider { + private static final class SubjectMethods extends TestParameterValuesProvider { @Override - public ImmutableList provideValues() { + public ImmutableList provideValues(Context context) { return getAssertionMethods(Subject.class); } } - private static final class IterableSubjectMethods implements TestParameterValuesProvider { + private static final class IterableSubjectMethods extends TestParameterValuesProvider { @Override - public ImmutableList provideValues() { + public ImmutableList provideValues(Context context) { return getAssertionMethods(IterableSubject.class); } } - private static final class ProtoTruthSubjectMethods implements TestParameterValuesProvider { + private static final class ProtoTruthSubjectMethods extends TestParameterValuesProvider { @Override - public ImmutableList provideValues() { + public ImmutableList provideValues(Context context) { return getAssertionMethods(ProtoSubject.class); } }