From 291414cd574c3d7610574bb90bc5d2640ce3785c Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 5 Jul 2019 12:53:51 -0400 Subject: [PATCH] Unnecessary @SuppressWarnings("unchecked"). --- .../apache/commons/collections4/iterators/EmptyIterator.java | 2 -- .../commons/collections4/iterators/EmptyListIterator.java | 2 -- .../apache/commons/collections4/iterators/EmptyMapIterator.java | 1 - .../commons/collections4/iterators/EmptyOrderedIterator.java | 1 - .../commons/collections4/iterators/EmptyOrderedMapIterator.java | 1 - 5 files changed, 7 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/iterators/EmptyIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EmptyIterator.java index b381b575d..7ab8bb1bc 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/EmptyIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/EmptyIterator.java @@ -50,7 +50,6 @@ public class EmptyIterator extends AbstractEmptyIterator implements Resett * @param the element type * @return ResettableIterator<E> */ - @SuppressWarnings("unchecked") public static ResettableIterator resettableEmptyIterator() { return RESETTABLE_INSTANCE; } @@ -60,7 +59,6 @@ public class EmptyIterator extends AbstractEmptyIterator implements Resett * @param the element type * @return Iterator<E> */ - @SuppressWarnings("unchecked") public static Iterator emptyIterator() { return INSTANCE; } diff --git a/src/main/java/org/apache/commons/collections4/iterators/EmptyListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EmptyListIterator.java index f54e1e990..b178579f4 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/EmptyListIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/EmptyListIterator.java @@ -51,7 +51,6 @@ public class EmptyListIterator extends AbstractEmptyIterator implements * @param the element type * @return {@link ResettableListIterator}<E> */ - @SuppressWarnings("unchecked") public static ResettableListIterator resettableEmptyListIterator() { return RESETTABLE_INSTANCE; } @@ -61,7 +60,6 @@ public class EmptyListIterator extends AbstractEmptyIterator implements * @param the element type * @return {@link ListIterator}<E> */ - @SuppressWarnings("unchecked") public static ListIterator emptyListIterator() { return INSTANCE; } diff --git a/src/main/java/org/apache/commons/collections4/iterators/EmptyMapIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EmptyMapIterator.java index 6620725e7..638d81822 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/EmptyMapIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/EmptyMapIterator.java @@ -42,7 +42,6 @@ public class EmptyMapIterator extends AbstractEmptyMapIterator imple * @param the value type * @return {@link MapIterator}<K, V> */ - @SuppressWarnings("unchecked") public static MapIterator emptyMapIterator() { return INSTANCE; } diff --git a/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedIterator.java index 3f5664efd..e7d9bf062 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedIterator.java @@ -39,7 +39,6 @@ public class EmptyOrderedIterator extends AbstractEmptyIterator * @param the element type * @return OrderedIterator<E> */ - @SuppressWarnings("unchecked") public static OrderedIterator emptyOrderedIterator() { return INSTANCE; } diff --git a/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedMapIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedMapIterator.java index cc760d11b..63328b917 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedMapIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedMapIterator.java @@ -42,7 +42,6 @@ public class EmptyOrderedMapIterator extends AbstractEmptyMapIterator the value type * @return {@link OrderedMapIterator}<K, V> */ - @SuppressWarnings("unchecked") public static OrderedMapIterator emptyOrderedMapIterator() { return INSTANCE; }