From 1977c475904fe64ff28e1f2ef5e896e4c2e6e2f6 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 22 Jun 2018 07:09:21 +0100 Subject: [PATCH] Replace type specifier in Result constructor with diamond operator --- src/main/java/net/kemitix/mon/result/Result.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } /**