Deprecate CompositeIterator in favor Spring core.

Deprecate existing class and refactor internal code to use the org.spring.util version that 
has been available since Spring 3.0

Issues: SWF-1532
This commit is contained in:
Phillip Webb
2012-04-12 09:02:11 -07:00
parent 22289e4bf3
commit b7342dbc20
4 changed files with 6 additions and 3 deletions

View File

@@ -27,7 +27,9 @@ import org.springframework.util.Assert;
* iterators which are invoked in sequence untill all iterators are exhausted.
*
* @author Erwin Vervaet
* @deprecated in favor of {@link org.springframework.util.CompositeIterator}
*/
@Deprecated
public class CompositeIterator<E> implements Iterator<E> {
private List<Iterator<E>> iterators = new LinkedList<Iterator<E>>();
@@ -74,4 +76,4 @@ public class CompositeIterator<E> implements Iterator<E> {
public void remove() {
throw new UnsupportedOperationException("Remove is not supported");
}
}
}

View File

@@ -27,6 +27,7 @@ import junit.framework.TestCase;
*
* @author Erwin Vervaet
*/
@Deprecated
public class CompositeIteratorTests extends TestCase {
public void testNoIterators() {