aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/ss/util/SSCellRange.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/ss/util/SSCellRange.java')
-rw-r--r--src/java/org/apache/poi/ss/util/SSCellRange.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/ss/util/SSCellRange.java b/src/java/org/apache/poi/ss/util/SSCellRange.java
index f58a2780e8..e948465567 100644
--- a/src/java/org/apache/poi/ss/util/SSCellRange.java
+++ b/src/java/org/apache/poi/ss/util/SSCellRange.java
@@ -57,7 +57,7 @@ public final class SSCellRange<K extends Cell> implements CellRange<K> {
@SuppressWarnings("unchecked")
B[] flattenedArray = (B[]) Array.newInstance(cellClass, nItems);
flattenedList.toArray(flattenedArray);
- return new SSCellRange<B>(firstRow, firstColumn, height, width, flattenedArray);
+ return new SSCellRange<>(firstRow, firstColumn, height, width, flattenedArray);
}
public int getHeight() {
@@ -109,7 +109,7 @@ public final class SSCellRange<K extends Cell> implements CellRange<K> {
return result;
}
public Iterator<K> iterator() {
- return new ArrayIterator<K>(_flattenedArray);
+ return new ArrayIterator<>(_flattenedArray);
}
private static final class ArrayIterator<D> implements Iterator<D> {