[COLLECTIONS-502] remove generic parameters from static INSTANCE fields.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1543955 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
07d54f1676
commit
35d4fd2ae7
|
@ -47,7 +47,6 @@ public class ArrayListIterator<E> extends ArrayIterator<E>
|
|||
* or <code>previous()</code>. This is set to <code>-1</code> if neither method
|
||||
* has yet been invoked. <code>lastItemIndex</code> is used to to implement
|
||||
* the {@link #set} method.
|
||||
*
|
||||
*/
|
||||
private int lastItemIndex = -1;
|
||||
|
||||
|
|
|
@ -36,13 +36,15 @@ public class EmptyIterator<E> extends AbstractEmptyIterator<E> implements Resett
|
|||
* Singleton instance of the iterator.
|
||||
* @since 3.1
|
||||
*/
|
||||
public static final ResettableIterator<Object> RESETTABLE_INSTANCE = new EmptyIterator<Object>();
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static final ResettableIterator RESETTABLE_INSTANCE = new EmptyIterator<Object>();
|
||||
|
||||
/**
|
||||
* Singleton instance of the iterator.
|
||||
* @since 2.1.1 and 3.1
|
||||
*/
|
||||
public static final Iterator<Object> INSTANCE = RESETTABLE_INSTANCE;
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static final Iterator INSTANCE = RESETTABLE_INSTANCE;
|
||||
|
||||
/**
|
||||
* Get a typed resettable empty iterator instance.
|
||||
|
|
|
@ -37,13 +37,15 @@ public class EmptyListIterator<E> extends AbstractEmptyIterator<E> implements
|
|||
* Singleton instance of the iterator.
|
||||
* @since 3.1
|
||||
*/
|
||||
public static final ResettableListIterator<Object> RESETTABLE_INSTANCE = new EmptyListIterator<Object>();
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static final ResettableListIterator RESETTABLE_INSTANCE = new EmptyListIterator<Object>();
|
||||
|
||||
/**
|
||||
* Singleton instance of the iterator.
|
||||
* @since 2.1.1 and 3.1
|
||||
*/
|
||||
public static final ListIterator<Object> INSTANCE = RESETTABLE_INSTANCE;
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static final ListIterator INSTANCE = RESETTABLE_INSTANCE;
|
||||
|
||||
/**
|
||||
* Get a typed instance of the iterator.
|
||||
|
|
|
@ -32,7 +32,8 @@ public class EmptyMapIterator<K, V> extends AbstractEmptyMapIterator<K, V> imple
|
|||
* Singleton instance of the iterator.
|
||||
* @since 3.1
|
||||
*/
|
||||
public static final MapIterator<Object, Object> INSTANCE = new EmptyMapIterator<Object, Object>();
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static final MapIterator INSTANCE = new EmptyMapIterator<Object, Object>();
|
||||
|
||||
/**
|
||||
* Get a typed instance of the iterator.
|
||||
|
|
|
@ -32,7 +32,8 @@ public class EmptyOrderedIterator<E> extends AbstractEmptyIterator<E>
|
|||
* Singleton instance of the iterator.
|
||||
* @since 3.1
|
||||
*/
|
||||
public static final OrderedIterator<Object> INSTANCE = new EmptyOrderedIterator<Object>();
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static final OrderedIterator INSTANCE = new EmptyOrderedIterator<Object>();
|
||||
|
||||
/**
|
||||
* Typed instance of the iterator.
|
||||
|
|
|
@ -32,7 +32,8 @@ public class EmptyOrderedMapIterator<K, V> extends AbstractEmptyMapIterator<K, V
|
|||
* Singleton instance of the iterator.
|
||||
* @since 3.1
|
||||
*/
|
||||
public static final OrderedMapIterator<Object, Object> INSTANCE = new EmptyOrderedMapIterator<Object, Object>();
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static final OrderedMapIterator INSTANCE = new EmptyOrderedMapIterator<Object, Object>();
|
||||
|
||||
/**
|
||||
* Get a typed instance of the iterator.
|
||||
|
|
Loading…
Reference in New Issue