aboutsummaryrefslogtreecommitdiffstats
path: root/src/excelant
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-09-16 08:27:23 +0000
committerDominik Stadler <centic@apache.org>2017-09-16 08:27:23 +0000
commit0cfa1ede4cbc9c00d2f5d3946ae9f57a6dd74d48 (patch)
treeb7f6385f47dbeda7309986def1a4450c64499eb0 /src/excelant
parent3e70d75cfb84a6eb6ddb06d1028e636cf03914d1 (diff)
downloadpoi-0cfa1ede4cbc9c00d2f5d3946ae9f57a6dd74d48.tar.gz
poi-0cfa1ede4cbc9c00d2f5d3946ae9f57a6dd74d48.zip
Remove unnecessary type arguments (Java 8)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808516 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/excelant')
-rw-r--r--src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java4
-rw-r--r--src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTest.java6
-rw-r--r--src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtil.java4
-rw-r--r--src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtilFactory.java2
4 files changed, 8 insertions, 8 deletions
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java
index 625d1a4024..16f2e5ff8e 100644
--- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java
+++ b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java
@@ -47,8 +47,8 @@ public class ExcelAntTask extends Task {
private LinkedList<ExcelAntUserDefinedFunction> functions ;
public ExcelAntTask() {
- tests = new LinkedList<ExcelAntTest>() ;
- functions = new LinkedList<ExcelAntUserDefinedFunction>() ;
+ tests = new LinkedList<>() ;
+ functions = new LinkedList<>() ;
}
public void addPrecision( ExcelAntPrecision prec ) {
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTest.java b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTest.java
index fc35eba08a..586f855667 100644
--- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTest.java
+++ b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTest.java
@@ -56,9 +56,9 @@ public class ExcelAntTest extends Task{
public ExcelAntTest() {
- evaluators = new LinkedList<ExcelAntEvaluateCell>();
- failureMessages = new LinkedList<String>();
- testTasks = new LinkedList<Task>();
+ evaluators = new LinkedList<>();
+ failureMessages = new LinkedList<>();
+ testTasks = new LinkedList<>();
}
public void setPrecision( double precision ) {
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtil.java b/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtil.java
index 5c3463d57b..fa98628eee 100644
--- a/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtil.java
+++ b/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtil.java
@@ -59,7 +59,7 @@ public class ExcelAntWorkbookUtil extends Typedef {
private Workbook workbook;
- private final Map<String, FreeRefFunction> xlsMacroList = new HashMap<String, FreeRefFunction>();
+ private final Map<String, FreeRefFunction> xlsMacroList = new HashMap<>();
/**
* Constructs an instance using a String that contains the fully qualified
@@ -215,7 +215,7 @@ public class ExcelAntWorkbookUtil extends Typedef {
* @return
*/
public List<String> getSheets() {
- ArrayList<String> sheets = new ArrayList<String>();
+ ArrayList<String> sheets = new ArrayList<>();
int sheetCount = workbook.getNumberOfSheets();
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtilFactory.java b/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtilFactory.java
index 683ac46368..113f0390f7 100644
--- a/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtilFactory.java
+++ b/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtilFactory.java
@@ -46,7 +46,7 @@ public final class ExcelAntWorkbookUtilFactory {
*/
public static ExcelAntWorkbookUtil getInstance(String fileName) {
if(workbookUtilMap == null) {
- workbookUtilMap = new HashMap<String, ExcelAntWorkbookUtil>();
+ workbookUtilMap = new HashMap<>();
}
if(workbookUtilMap.containsKey(fileName)) {