aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-12-28 08:45:26 +0000
committerDominik Stadler <centic@apache.org>2017-12-28 08:45:26 +0000
commit62c8296c709b7ea1291d87f5658b69d80b20ace7 (patch)
treef55bf50981221a711bccbe585b1cb0ab7ffaf4ee /src/testcases/org/apache/poi
parent6e67de21602e2a33ff0420e83d914a7da61e27a3 (diff)
downloadpoi-62c8296c709b7ea1291d87f5658b69d80b20ace7.tar.gz
poi-62c8296c709b7ea1291d87f5658b69d80b20ace7.zip
Fix IntelliJ warnings and code formatting, generalize ExcelToHtmlUtils, use try-with-resources, update/enhance JavaDoc somewhat
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1819402 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi')
-rw-r--r--src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java b/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java
index 3fbf3dd487..54673cce39 100644
--- a/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java
+++ b/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java
@@ -20,10 +20,8 @@ package org.apache.poi.ss.util;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertArrayEquals;
-import static org.junit.Assume.assumeTrue;
import java.util.Set;
import java.util.HashSet;
-import java.util.Iterator;
import org.apache.commons.collections4.IteratorUtils;
/**
@@ -54,7 +52,7 @@ public final class TestCellRangeUtil {
assertCellRangesEqual(asArray(A1_B2), merge(A1, B1, A2, B2));
assertCellRangesEqual(asArray(A1_B2), merge(A1, B2, A2, B1));
- // Partially mergeable: multiple possible mergings
+ // Partially mergeable: multiple possible merges
// A B
// 1 x x A1,A2,B1 --> A1:B1,A2 or A1:A2,B1
// 2 x
@@ -82,8 +80,8 @@ public final class TestCellRangeUtil {
}
return set;
}
-
- private static <T> T[] asArray(T...ts) {
+
+ private static CellRangeAddress[] asArray(CellRangeAddress...ts) {
return ts;
}