diff options
Diffstat (limited to 'src/excelant')
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)) { |