From e1bff9a5703baf17ec650b173bdfe776bf87125f Mon Sep 17 00:00:00 2001 From: Lars Grefer <eclipse@larsgrefer.de> Date: Thu, 13 Aug 2020 01:01:58 +0200 Subject: Use the diamond operator where possible Signed-off-by: Lars Grefer <eclipse@larsgrefer.de> --- util/src/test/java/org/aspectj/util/FileUtilTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util/src/test/java/org/aspectj') diff --git a/util/src/test/java/org/aspectj/util/FileUtilTest.java b/util/src/test/java/org/aspectj/util/FileUtilTest.java index 663352be6..7936914fb 100644 --- a/util/src/test/java/org/aspectj/util/FileUtilTest.java +++ b/util/src/test/java/org/aspectj/util/FileUtilTest.java @@ -129,7 +129,7 @@ public class FileUtilTest extends TestCase { * @return sorted String[] of all paths to all files under dir ending with one of the listed suffixes but not starting with "." */ public static String[] dirPaths(File dir, String[] suffixes) { - ArrayList<String> result = new ArrayList<String>(); + ArrayList<String> result = new ArrayList<>(); doDirPaths(dir, result); // if suffixes required, remove those without suffixes if (!LangUtil.isEmpty(suffixes)) { @@ -192,7 +192,7 @@ public class FileUtilTest extends TestCase { public FileUtilTest(String s) { super(s); - tempFiles = new ArrayList<File>(); + tempFiles = new ArrayList<>(); } public void tearDown() { @@ -459,10 +459,10 @@ public class FileUtilTest extends TestCase { contents += contents; FileUtil.writeAsString(file, contents); tempFiles.add(file); - List<String> sourceList = new ArrayList<String>(); + List<String> sourceList = new ArrayList<>(); sourceList.add(file.getPath()); - final ArrayList<String> errors = new ArrayList<String>(); + final ArrayList<String> errors = new ArrayList<>(); final PrintStream errorSink = new PrintStream(System.err, true) { public void println(String error) { errors.add(error); -- cgit v1.2.3