aboutsummaryrefslogtreecommitdiffstats
path: root/util/src/test/java
diff options
context:
space:
mode:
authorLars Grefer <eclipse@larsgrefer.de>2020-08-13 01:01:58 +0200
committerLars Grefer <eclipse@larsgrefer.de>2020-08-13 01:01:58 +0200
commite1bff9a5703baf17ec650b173bdfe776bf87125f (patch)
tree8b4443759c231a6c46cb70c755fe554a4b621e11 /util/src/test/java
parentb6eee2e1052116aa22ebbd3c2baf05c2b709bee5 (diff)
downloadaspectj-e1bff9a5703baf17ec650b173bdfe776bf87125f.tar.gz
aspectj-e1bff9a5703baf17ec650b173bdfe776bf87125f.zip
Use the diamond operator where possible
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Diffstat (limited to 'util/src/test/java')
-rw-r--r--util/src/test/java/org/aspectj/util/FileUtilTest.java8
1 files changed, 4 insertions, 4 deletions
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);