From 39b5c16040f5368e51e286aefe9671ebea776c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Chmielarz?= Date: Wed, 3 Mar 2021 10:08:48 +0100 Subject: [PATCH] Fixes #141 (#142) --- .../org/assertj/vavr/api/VavrAssumptions.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/org/assertj/vavr/api/VavrAssumptions.java b/src/main/java/org/assertj/vavr/api/VavrAssumptions.java index 6e117e1..9018314 100644 --- a/src/main/java/org/assertj/vavr/api/VavrAssumptions.java +++ b/src/main/java/org/assertj/vavr/api/VavrAssumptions.java @@ -47,7 +47,7 @@ public class VavrAssumptions { * This NamingStrategy takes the original class's name and adds a suffix to distinguish it. * The default is ByteBuddy but for debugging purposes, it makes sense to add AssertJ as a name. */ - private static ByteBuddy BYTE_BUDDY = new ByteBuddy().with(TypeValidation.DISABLED) + private static final ByteBuddy BYTE_BUDDY = new ByteBuddy().with(TypeValidation.DISABLED) .with(new AuxiliaryType.NamingStrategy.SuffixingRandom("Assertj$Assumptions")); private static final Implementation ASSUMPTION = MethodDelegation.to(AssumptionMethodInterceptor.class); @@ -81,7 +81,7 @@ public static Object intercept(@This AbstractVavrAssert assertion, @SuperC */ @CheckReturnValue @SuppressWarnings("unchecked") - public static AbstractEitherAssert assumeThat(Either actual) { + public static EitherAssert assumeThat(Either actual) { return asAssumption(EitherAssert.class, Either.class, actual); } @@ -94,7 +94,7 @@ public static AbstractEitherAssert assumeThat(Eith */ @CheckReturnValue @SuppressWarnings("unchecked") - public static AbstractLazyAssert assumeThat(Lazy actual) { + public static LazyAssert assumeThat(Lazy actual) { return asAssumption(LazyAssert.class, Lazy.class, actual); } @@ -108,7 +108,7 @@ public static AbstractLazyAssert assumeThat(Lazy actual */ @CheckReturnValue @SuppressWarnings("unchecked") - public static AbstractMapAssert assumeThat(Map actual) { + public static MapAssert assumeThat(Map actual) { return asAssumption(MapAssert.class, Map.class, actual); } @@ -122,7 +122,7 @@ public static AbstractLazyAssert assumeThat(Lazy actual */ @CheckReturnValue @SuppressWarnings("unchecked") - public static AbstractMultimapAssert assumeThat(Multimap actual) { + public static MultimapAssert assumeThat(Multimap actual) { return asAssumption(MultimapAssert.class, Multimap.class, actual); } @@ -135,7 +135,7 @@ public static AbstractLazyAssert assumeThat(Lazy actual */ @CheckReturnValue @SuppressWarnings("unchecked") - public static AbstractOptionAssert assumeThat(Option actual) { + public static OptionAssert assumeThat(Option actual) { return asAssumption(OptionAssert.class, Option.class, actual); } @@ -148,7 +148,7 @@ public static AbstractOptionAssert assumeThat(Option ac */ @CheckReturnValue @SuppressWarnings("unchecked") - public static AbstractSetAssert assumeThat(Set actual) { + public static SetAssert assumeThat(Set actual) { return asAssumption(SetAssert.class, Set.class, actual); } @@ -161,7 +161,7 @@ public static AbstractOptionAssert assumeThat(Option ac */ @CheckReturnValue @SuppressWarnings("unchecked") - public static AbstractSeqAssert assumeThat(Seq actual) { + public static SeqAssert assumeThat(Seq actual) { return asAssumption(SeqAssert.class, Seq.class, actual); } @@ -174,7 +174,7 @@ public static AbstractOptionAssert assumeThat(Option ac */ @CheckReturnValue @SuppressWarnings("unchecked") - public static AbstractTryAssert assumeThat(Try actual) { + public static TryAssert assumeThat(Try actual) { return asAssumption(TryAssert.class, Try.class, actual); } @@ -188,7 +188,7 @@ public static AbstractTryAssert assumeThat(Try actual) */ @CheckReturnValue @SuppressWarnings("unchecked") - public static AbstractValidationAssert assumeThat(Validation actual) { + public static ValidationAssert assumeThat(Validation actual) { return asAssumption(ValidationAssert.class, Validation.class, actual); }