From b799927de4a60a0a7d68277a1aaced64c2fd9b1f Mon Sep 17 00:00:00 2001 From: Error Prone Team Date: Wed, 7 Feb 2024 23:45:31 -0800 Subject: [PATCH] Automatic code cleanup. PiperOrigin-RevId: 605217009 --- .../TruthIncompatibleTypeTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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); } }