From 8ec3069d1d2a7c0b9949f276053039d64a34a45c Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 24 Jun 2018 08:16:54 +0100 Subject: [PATCH] Suppress warning for unchecked cast --- src/main/java/net/kemitix/mon/maybe/Nothing.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/kemitix/mon/maybe/Nothing.java b/src/main/java/net/kemitix/mon/maybe/Nothing.java index 47448b0..c90beb5 100644 --- a/src/main/java/net/kemitix/mon/maybe/Nothing.java +++ b/src/main/java/net/kemitix/mon/maybe/Nothing.java @@ -39,6 +39,7 @@ final class Nothing implements Maybe { static final Maybe INSTANCE = new Nothing<>(); @Override + @SuppressWarnings("unchecked") public Maybe map(final Function f) { return (Maybe) INSTANCE; }