Unnecessary @SuppressWarnings("unchecked").
This commit is contained in:
parent
f12470cd6c
commit
291414cd57
|
@ -50,7 +50,6 @@ public class EmptyIterator<E> extends AbstractEmptyIterator<E> implements Resett
|
|||
* @param <E> the element type
|
||||
* @return ResettableIterator<E>
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <E> ResettableIterator<E> resettableEmptyIterator() {
|
||||
return RESETTABLE_INSTANCE;
|
||||
}
|
||||
|
@ -60,7 +59,6 @@ public class EmptyIterator<E> extends AbstractEmptyIterator<E> implements Resett
|
|||
* @param <E> the element type
|
||||
* @return Iterator<E>
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <E> Iterator<E> emptyIterator() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,6 @@ public class EmptyListIterator<E> extends AbstractEmptyIterator<E> implements
|
|||
* @param <E> the element type
|
||||
* @return {@link ResettableListIterator}<E>
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <E> ResettableListIterator<E> resettableEmptyListIterator() {
|
||||
return RESETTABLE_INSTANCE;
|
||||
}
|
||||
|
@ -61,7 +60,6 @@ public class EmptyListIterator<E> extends AbstractEmptyIterator<E> implements
|
|||
* @param <E> the element type
|
||||
* @return {@link ListIterator}<E>
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <E> ListIterator<E> emptyListIterator() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,6 @@ public class EmptyMapIterator<K, V> extends AbstractEmptyMapIterator<K, V> imple
|
|||
* @param <V> the value type
|
||||
* @return {@link MapIterator}<K, V>
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <K, V> MapIterator<K, V> emptyMapIterator() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
|
|
@ -39,7 +39,6 @@ public class EmptyOrderedIterator<E> extends AbstractEmptyIterator<E>
|
|||
* @param <E> the element type
|
||||
* @return OrderedIterator<E>
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <E> OrderedIterator<E> emptyOrderedIterator() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,6 @@ public class EmptyOrderedMapIterator<K, V> extends AbstractEmptyMapIterator<K, V
|
|||
* @param <V> the value type
|
||||
* @return {@link OrderedMapIterator}<K, V>
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <K, V> OrderedMapIterator<K, V> emptyOrderedMapIterator() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue