diff --git a/build.xml b/build.xml
index 43c580e4e..b022403a0 100644
--- a/build.xml
+++ b/build.xml
@@ -177,9 +177,9 @@ under the License.
-
+
+ value="${repository.m2}/maven2/com/github/virtuald/curvesapi/1.03/curvesapi-1.03.jar"/>
diff --git a/maven/poi-ooxml.pom b/maven/poi-ooxml.pom
index 5850def21..641934693 100644
--- a/maven/poi-ooxml.pom
+++ b/maven/poi-ooxml.pom
@@ -72,7 +72,7 @@
com.github.virtuald
curvesapi
- 1.02
+ 1.03
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 e5cb8144c..bca48bc09 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,9 +17,11 @@
package org.apache.poi.xdgf.usermodel.section;
+import java.util.Collections;
import java.util.Iterator;
import java.util.Map.Entry;
import java.util.NoSuchElementException;
+import java.util.Set;
import java.util.SortedMap;
/**
@@ -31,25 +33,6 @@ public class CombinedIterable implements Iterable {
final SortedMap _baseItems;
final SortedMap _masterItems;
-
- 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,
SortedMap masterItems) {
@@ -62,10 +45,12 @@ public class CombinedIterable implements Iterable {
final Iterator> vmasterI;
- if (_masterItems != null)
+ if (_masterItems != null) {
vmasterI = _masterItems.entrySet().iterator();
- else
- vmasterI = new EmptyIterator>();
+ } else {
+ final Set> empty = Collections.emptySet();
+ vmasterI = empty.iterator();
+ }
return new Iterator() {