From 0dfe086921dc404dfd8f7d58e91ee49c00454347 Mon Sep 17 00:00:00 2001 From: Phil Werli Date: Fri, 12 Apr 2024 09:09:17 +0200 Subject: [PATCH] Run `./apply-error-prone-suggestions.sh` Nice --- .../tech/picnic/errorprone/refasterrules/ReactorRules.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ReactorRules.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ReactorRules.java index b0f7b9b931e..99f5bfa6a4c 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ReactorRules.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ReactorRules.java @@ -41,7 +41,6 @@ import java.util.function.Predicate; import java.util.function.Supplier; import java.util.stream.Collector; -import org.assertj.core.api.Assertions; import org.jspecify.annotations.Nullable; import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; @@ -1964,8 +1963,7 @@ void before(StepVerifier.LastStep step, Class clazz, String @AfterTemplate @UseImportPolicy(STATIC_IMPORT_ALWAYS) void after(StepVerifier.LastStep step, Class clazz, String message) { - step.verifyErrorSatisfies( - t -> Assertions.assertThat(t).isInstanceOf(clazz).hasMessage(message)); + step.verifyErrorSatisfies(t -> assertThat(t).isInstanceOf(clazz).hasMessage(message)); } }