Unnecessary @SuppressWarnings("unchecked").

This commit is contained in:
Gary Gregory 2019-07-05 12:53:51 -04:00
parent f12470cd6c
commit 291414cd57
5 changed files with 0 additions and 7 deletions

View File

@ -50,7 +50,6 @@ public class EmptyIterator<E> extends AbstractEmptyIterator<E> implements Resett
* @param <E> the element type * @param <E> the element type
* @return ResettableIterator&lt;E&gt; * @return ResettableIterator&lt;E&gt;
*/ */
@SuppressWarnings("unchecked")
public static <E> ResettableIterator<E> resettableEmptyIterator() { public static <E> ResettableIterator<E> resettableEmptyIterator() {
return RESETTABLE_INSTANCE; return RESETTABLE_INSTANCE;
} }
@ -60,7 +59,6 @@ public class EmptyIterator<E> extends AbstractEmptyIterator<E> implements Resett
* @param <E> the element type * @param <E> the element type
* @return Iterator&lt;E&gt; * @return Iterator&lt;E&gt;
*/ */
@SuppressWarnings("unchecked")
public static <E> Iterator<E> emptyIterator() { public static <E> Iterator<E> emptyIterator() {
return INSTANCE; return INSTANCE;
} }

View File

@ -51,7 +51,6 @@ public class EmptyListIterator<E> extends AbstractEmptyIterator<E> implements
* @param <E> the element type * @param <E> the element type
* @return {@link ResettableListIterator}&lt;E&gt; * @return {@link ResettableListIterator}&lt;E&gt;
*/ */
@SuppressWarnings("unchecked")
public static <E> ResettableListIterator<E> resettableEmptyListIterator() { public static <E> ResettableListIterator<E> resettableEmptyListIterator() {
return RESETTABLE_INSTANCE; return RESETTABLE_INSTANCE;
} }
@ -61,7 +60,6 @@ public class EmptyListIterator<E> extends AbstractEmptyIterator<E> implements
* @param <E> the element type * @param <E> the element type
* @return {@link ListIterator}&lt;E&gt; * @return {@link ListIterator}&lt;E&gt;
*/ */
@SuppressWarnings("unchecked")
public static <E> ListIterator<E> emptyListIterator() { public static <E> ListIterator<E> emptyListIterator() {
return INSTANCE; return INSTANCE;
} }

View File

@ -42,7 +42,6 @@ public class EmptyMapIterator<K, V> extends AbstractEmptyMapIterator<K, V> imple
* @param <V> the value type * @param <V> the value type
* @return {@link MapIterator}&lt;K, V&gt; * @return {@link MapIterator}&lt;K, V&gt;
*/ */
@SuppressWarnings("unchecked")
public static <K, V> MapIterator<K, V> emptyMapIterator() { public static <K, V> MapIterator<K, V> emptyMapIterator() {
return INSTANCE; return INSTANCE;
} }

View File

@ -39,7 +39,6 @@ public class EmptyOrderedIterator<E> extends AbstractEmptyIterator<E>
* @param <E> the element type * @param <E> the element type
* @return OrderedIterator&lt;E&gt; * @return OrderedIterator&lt;E&gt;
*/ */
@SuppressWarnings("unchecked")
public static <E> OrderedIterator<E> emptyOrderedIterator() { public static <E> OrderedIterator<E> emptyOrderedIterator() {
return INSTANCE; return INSTANCE;
} }

View File

@ -42,7 +42,6 @@ public class EmptyOrderedMapIterator<K, V> extends AbstractEmptyMapIterator<K, V
* @param <V> the value type * @param <V> the value type
* @return {@link OrderedMapIterator}&lt;K, V&gt; * @return {@link OrderedMapIterator}&lt;K, V&gt;
*/ */
@SuppressWarnings("unchecked")
public static <K, V> OrderedMapIterator<K, V> emptyOrderedMapIterator() { public static <K, V> OrderedMapIterator<K, V> emptyOrderedMapIterator() {
return INSTANCE; return INSTANCE;
} }