From cd0ef592e81126c9484c3901f8c3a734058339f2 Mon Sep 17 00:00:00 2001 From: cpovirk Date: Tue, 17 Sep 2024 11:47:18 -0700 Subject: [PATCH] Fix the names of some Truth classes. (The `AssertionCallback` classes were deleted so long ago that we could probably remove the references outright, so let me know if you'd prefer that.) Startblock: unknown commit is submitted PiperOrigin-RevId: 675651056 --- .../java/com/google/errorprone/matchers/Matchers.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/check_api/src/main/java/com/google/errorprone/matchers/Matchers.java b/check_api/src/main/java/com/google/errorprone/matchers/Matchers.java index 4d5288965a9..a3844158b2b 100644 --- a/check_api/src/main/java/com/google/errorprone/matchers/Matchers.java +++ b/check_api/src/main/java/com/google/errorprone/matchers/Matchers.java @@ -1354,12 +1354,12 @@ public static boolean isThrowingFunctionalInterface(Type clazzType, VisitorState "org.junit.function.ThrowingRunnable", "org.junit.jupiter.api.function.Executable", "org.assertj.core.api.ThrowableAssert$ThrowingCallable", + "com.google.common.truth.ExpectFailure.AssertionCallback", + "com.google.common.truth.ExpectFailure.DelegatedAssertionCallback", + "com.google.common.truth.ExpectFailure.StandardSubjectBuilderCallback", + "com.google.common.truth.ExpectFailure.SimpleSubjectBuilderCallback", "com.google.devtools.build.lib.testutil.MoreAsserts$ThrowingRunnable", - "com.google.gerrit.testing.GerritJUnit$ThrowingRunnable", - "com.google.truth.ExpectFailure.AssertionCallback", - "com.google.truth.ExpectFailure.DelegatedAssertionCallback", - "com.google.truth.ExpectFailure.StandardSubjectBuilderCallback", - "com.google.truth.ExpectFailure.SimpleSubjectBuilderCallback") + "com.google.gerrit.testing.GerritJUnit$ThrowingRunnable") .map(state::getTypeFromString) .filter(Objects::nonNull) .collect(toImmutableSet()));