diff --git a/src/ooxml/java/org/apache/poi/xdgf/usermodel/section/CombinedIterable.java b/src/ooxml/java/org/apache/poi/xdgf/usermodel/section/CombinedIterable.java index a659a8bcef..e5cb8144ca 100644 --- a/src/ooxml/java/org/apache/poi/xdgf/usermodel/section/CombinedIterable.java +++ b/src/ooxml/java/org/apache/poi/xdgf/usermodel/section/CombinedIterable.java @@ -17,7 +17,6 @@ package org.apache.poi.xdgf.usermodel.section; -import java.util.Collections; import java.util.Iterator; import java.util.Map.Entry; import java.util.NoSuchElementException; @@ -35,14 +34,21 @@ public class CombinedIterable implements Iterable { private static final class EmptyIterator implements Iterator { + @Override public boolean hasNext() { return false; } + @Override public T next() { return null; } + @Override + public void remove() { + throw new UnsupportedOperationException(); + } + } public CombinedIterable(SortedMap baseItems,