From 7b0dc90d55ed54d3fe9ab104e6e90135bd963b7d Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 12 Mar 2018 20:08:04 +0000 Subject: [PATCH] Add missing generic types --- .../java/net/kemitix/conditional/TrueValueClause.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/kemitix/conditional/TrueValueClause.java b/src/main/java/net/kemitix/conditional/TrueValueClause.java index 9d3fbcc..c8e7143 100644 --- a/src/main/java/net/kemitix/conditional/TrueValueClause.java +++ b/src/main/java/net/kemitix/conditional/TrueValueClause.java @@ -34,11 +34,11 @@ import java.util.function.Supplier; */ class TrueValueClause implements Value.ValueClause { - protected static final Value.ValueClause TRUE = new TrueValueClause(); + protected static final Value.ValueClause TRUE = new TrueValueClause<>(); @Override public ValueSupplier then(final Supplier trueSupplier) { - return new TrueValueSupplier(trueSupplier); + return new TrueValueSupplier<>(trueSupplier); } @Override @@ -54,11 +54,13 @@ class TrueValueClause implements Value.ValueClause { /** * An intermediate result of the {@link Value} where the clause has evaluated to true. + * + * @param the type of the value */ @RequiredArgsConstructor - private class TrueValueSupplier implements ValueSupplier { + private static final class TrueValueSupplier implements ValueSupplier { - private final transient Supplier valueSupplier; + private final Supplier valueSupplier; @Override public T otherwise(final Supplier falseSupplier) {