diff --git a/src/main/java/net/kemitix/mon/result/Result.java b/src/main/java/net/kemitix/mon/result/Result.java index ff36be4..30f446b 100644 --- a/src/main/java/net/kemitix/mon/result/Result.java +++ b/src/main/java/net/kemitix/mon/result/Result.java @@ -41,7 +41,7 @@ public interface Result { * @return a successful Result */ static Result ok(final T value) { - return new Success(value); + return new Success<>(value); } /** @@ -52,7 +52,7 @@ public interface Result { * @return an error Result */ static Result error(final Throwable error) { - return new Err(error); + return new Err<>(error); } /**