diff options
author | Lars Grefer <eclipse@larsgrefer.de> | 2020-08-13 01:01:58 +0200 |
---|---|---|
committer | Lars Grefer <eclipse@larsgrefer.de> | 2020-08-13 01:01:58 +0200 |
commit | e1bff9a5703baf17ec650b173bdfe776bf87125f (patch) | |
tree | 8b4443759c231a6c46cb70c755fe554a4b621e11 /ajbrowser | |
parent | b6eee2e1052116aa22ebbd3c2baf05c2b709bee5 (diff) | |
download | aspectj-e1bff9a5703baf17ec650b173bdfe776bf87125f.tar.gz aspectj-e1bff9a5703baf17ec650b173bdfe776bf87125f.zip |
Use the diamond operator where possible
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Diffstat (limited to 'ajbrowser')
4 files changed, 7 insertions, 7 deletions
diff --git a/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/BrowserManager.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/BrowserManager.java index e59c16103..a5856afd9 100644 --- a/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/BrowserManager.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/BrowserManager.java @@ -61,7 +61,7 @@ public class BrowserManager { private UserPreferencesAdapter preferencesAdapter; private static TopFrame topFrame = null; - private List<String> configFiles = new ArrayList<String>(); + private List<String> configFiles = new ArrayList<>(); private JavaBuildOptions javaBuildOptions; public static BrowserManager getDefault() { @@ -182,7 +182,7 @@ public class BrowserManager { } private List<String> getConfigFilesList(String[] configFiles) { - List<String> configs = new ArrayList<String>(); + List<String> configs = new ArrayList<>(); for (String configFile : configFiles) { if (configFile.endsWith(BuildConfigManager.CONFIG_FILE_SUFFIX)) { configs.add(configFile); diff --git a/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserOutputLocationManager.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserOutputLocationManager.java index 1b754d2f1..c721394e2 100644 --- a/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserOutputLocationManager.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/core/BrowserOutputLocationManager.java @@ -47,7 +47,7 @@ public class BrowserOutputLocationManager implements IOutputLocationManager { } public List<File> getAllOutputLocations() { - List<File> outputDirs = new ArrayList<File>(); + List<File> outputDirs = new ArrayList<>(); outputDirs.add(new File(getCommonOutputDir())); return outputDirs; } diff --git a/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserMessageHandler.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserMessageHandler.java index b8dcf1c41..5188f8daf 100644 --- a/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserMessageHandler.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/BrowserMessageHandler.java @@ -32,8 +32,8 @@ public class BrowserMessageHandler implements IUIBuildMessageHandler { private List<IMessage> messages; public BrowserMessageHandler() { - ignoring = new ArrayList<IMessage.Kind>(); - messages = new ArrayList<IMessage>(); + ignoring = new ArrayList<>(); + messages = new ArrayList<>(); ignore(IMessage.INFO); ignore(IMessage.WEAVEINFO); } diff --git a/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/EditorManager.java b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/EditorManager.java index 12a7f8938..b737cf07e 100644 --- a/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/EditorManager.java +++ b/ajbrowser/src/main/java/org/aspectj/tools/ajbrowser/ui/EditorManager.java @@ -43,8 +43,8 @@ public class EditorManager { private EditorAdapter editor = null; private BasicEditor basicEditor = null; - private ArrayList<EditorListener> editorListeners = new ArrayList<EditorListener>(); - private Vector<EditorAdapter> editors = new Vector<EditorAdapter>(); + private ArrayList<EditorListener> editorListeners = new ArrayList<>(); + private Vector<EditorAdapter> editors = new Vector<>(); private JPanel editor_panel = null; private Box editors_box = Box.createVerticalBox(); |