diff options
author | Dominik Stadler <centic@apache.org> | 2017-09-16 08:27:23 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2017-09-16 08:27:23 +0000 |
commit | 0cfa1ede4cbc9c00d2f5d3946ae9f57a6dd74d48 (patch) | |
tree | b7f6385f47dbeda7309986def1a4450c64499eb0 /src/integrationtest/org | |
parent | 3e70d75cfb84a6eb6ddb06d1028e636cf03914d1 (diff) | |
download | poi-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/integrationtest/org')
5 files changed, 8 insertions, 8 deletions
diff --git a/src/integrationtest/org/apache/poi/TestAllFiles.java b/src/integrationtest/org/apache/poi/TestAllFiles.java index e3469da9cb..37aa464ee1 100644 --- a/src/integrationtest/org/apache/poi/TestAllFiles.java +++ b/src/integrationtest/org/apache/poi/TestAllFiles.java @@ -97,7 +97,7 @@ public class TestAllFiles { // map file extensions to the actual mappers - static final Map<String, FileHandler> HANDLERS = new HashMap<String, FileHandler>(); + static final Map<String, FileHandler> HANDLERS = new HashMap<>(); static { // Excel HANDLERS.put(".xls", new HSSFFileHandler()); @@ -210,7 +210,7 @@ public class TestAllFiles { HANDLERS.put("spreadsheet/BigSSTRecordCR", new NullFileHandler()); HANDLERS.put("spreadsheet/test_properties1", new NullFileHandler()); - Map<String,String> passmap = new HashMap<String,String>(); + Map<String,String> passmap = new HashMap<>(); passmap.put("slideshow/Password_Protected-hello.ppt", "hello"); passmap.put("slideshow/Password_Protected-56-hello.ppt", "hello"); passmap.put("slideshow/Password_Protected-np-hello.ppt", "hello"); @@ -237,7 +237,7 @@ public class TestAllFiles { return Collections.unmodifiableSet(hashSet(a)); } private static Set<String> hashSet(String... a) { - return new HashSet<String>(Arrays.asList(a)); + return new HashSet<>(Arrays.asList(a)); } // Old Word Documents where we can at least extract some text @@ -345,7 +345,7 @@ public class TestAllFiles { System.out.println("Handling " + scanner.getIncludedFiles().length + " files"); - List<Object[]> files = new ArrayList<Object[]>(); + List<Object[]> files = new ArrayList<>(); for(String file : scanner.getIncludedFiles()) { file = file.replace('\\', '/'); // ... failures/handlers lookup doesn't work on windows otherwise if (IGNORED.contains(file)) { diff --git a/src/integrationtest/org/apache/poi/stress/AbstractFileHandler.java b/src/integrationtest/org/apache/poi/stress/AbstractFileHandler.java index c4e453e580..ad2150c7f2 100644 --- a/src/integrationtest/org/apache/poi/stress/AbstractFileHandler.java +++ b/src/integrationtest/org/apache/poi/stress/AbstractFileHandler.java @@ -38,7 +38,7 @@ import org.apache.poi.util.IOUtils; import org.apache.xmlbeans.XmlException; public abstract class AbstractFileHandler implements FileHandler { - public static final Set<String> EXPECTED_EXTRACTOR_FAILURES = new HashSet<String>(); + public static final Set<String> EXPECTED_EXTRACTOR_FAILURES = new HashSet<>(); static { // password protected files without password // ... currently none ... diff --git a/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java b/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java index d726e2647f..2bad961bdb 100644 --- a/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java +++ b/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java @@ -63,7 +63,7 @@ public class HPSFFileHandler extends POIFSFileHandler { private static final Set<String> unmodifiableHashSet(String... a) { - return Collections.unmodifiableSet(new HashSet<String>(Arrays.asList(a))); + return Collections.unmodifiableSet(new HashSet<>(Arrays.asList(a))); } diff --git a/src/integrationtest/org/apache/poi/stress/HSSFFileHandler.java b/src/integrationtest/org/apache/poi/stress/HSSFFileHandler.java index 0f6f65d0b7..871311f114 100644 --- a/src/integrationtest/org/apache/poi/stress/HSSFFileHandler.java +++ b/src/integrationtest/org/apache/poi/stress/HSSFFileHandler.java @@ -54,7 +54,7 @@ public class HSSFFileHandler extends SpreadsheetHandler { // TODO: still fails on some records... RecordsStresser.handleWorkbook(wb); } - private static final Set<String> EXPECTED_ADDITIONAL_FAILURES = new HashSet<String>(); + private static final Set<String> EXPECTED_ADDITIONAL_FAILURES = new HashSet<>(); static { // encrypted EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/35897-type4.xls"); diff --git a/src/integrationtest/org/apache/poi/stress/XSSFFileHandler.java b/src/integrationtest/org/apache/poi/stress/XSSFFileHandler.java index 7ba697f231..b8bb0b57b0 100644 --- a/src/integrationtest/org/apache/poi/stress/XSSFFileHandler.java +++ b/src/integrationtest/org/apache/poi/stress/XSSFFileHandler.java @@ -157,7 +157,7 @@ public class XSSFFileHandler extends SpreadsheetHandler { } } - private static final Set<String> EXPECTED_ADDITIONAL_FAILURES = new HashSet<String>(); + private static final Set<String> EXPECTED_ADDITIONAL_FAILURES = new HashSet<>(); static { // expected sheet-id not found // EXPECTED_ADDITIONAL_FAILURES.add("spreadsheet/52348.xlsx"); |