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
|
* @param <E> the element type
|
||||||
* @return ResettableIterator<E>
|
* @return ResettableIterator<E>
|
||||||
*/
|
*/
|
||||||
@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<E>
|
* @return Iterator<E>
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public static <E> Iterator<E> emptyIterator() {
|
public static <E> Iterator<E> emptyIterator() {
|
||||||
return INSTANCE;
|
return INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}<E>
|
* @return {@link ResettableListIterator}<E>
|
||||||
*/
|
*/
|
||||||
@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}<E>
|
* @return {@link ListIterator}<E>
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public static <E> ListIterator<E> emptyListIterator() {
|
public static <E> ListIterator<E> emptyListIterator() {
|
||||||
return INSTANCE;
|
return INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}<K, V>
|
* @return {@link MapIterator}<K, V>
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public static <K, V> MapIterator<K, V> emptyMapIterator() {
|
public static <K, V> MapIterator<K, V> emptyMapIterator() {
|
||||||
return INSTANCE;
|
return INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,6 @@ public class EmptyOrderedIterator<E> extends AbstractEmptyIterator<E>
|
||||||
* @param <E> the element type
|
* @param <E> the element type
|
||||||
* @return OrderedIterator<E>
|
* @return OrderedIterator<E>
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public static <E> OrderedIterator<E> emptyOrderedIterator() {
|
public static <E> OrderedIterator<E> emptyOrderedIterator() {
|
||||||
return INSTANCE;
|
return INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}<K, V>
|
* @return {@link OrderedMapIterator}<K, V>
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public static <K, V> OrderedMapIterator<K, V> emptyOrderedMapIterator() {
|
public static <K, V> OrderedMapIterator<K, V> emptyOrderedMapIterator() {
|
||||||
return INSTANCE;
|
return INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue