From db4a8b47f0628e539646f1e80598dcf7ee965ef8 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Wed, 1 Jun 2022 15:58:15 -0400 Subject: [PATCH] @SuppressWarnings("unchecked") not needed --- src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java | 1 - .../java/org/apache/commons/lang3/tuple/ImmutableTriple.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java b/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java index 7b57c9758..950244be9 100644 --- a/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java +++ b/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java @@ -94,7 +94,6 @@ public final class ImmutablePair extends Pair { * @return an immutable pair of nulls. * @since 3.6 */ - @SuppressWarnings("unchecked") public static ImmutablePair nullPair() { return NULL; } diff --git a/src/main/java/org/apache/commons/lang3/tuple/ImmutableTriple.java b/src/main/java/org/apache/commons/lang3/tuple/ImmutableTriple.java index 19042bd45..91510915b 100644 --- a/src/main/java/org/apache/commons/lang3/tuple/ImmutableTriple.java +++ b/src/main/java/org/apache/commons/lang3/tuple/ImmutableTriple.java @@ -80,7 +80,6 @@ public final class ImmutableTriple extends Triple { * @return an immutable triple of nulls. * @since 3.6 */ - @SuppressWarnings("unchecked") public static ImmutableTriple nullTriple() { return NULL; }