lttng: Move to Java 7 and fix warnings
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui / src / org / eclipse / linuxtools / internal / lttng2 / ui / views / control / dialogs / ImportDialog.java
index b82653d80034de7a1dc8f2921b62101c54581d2b..69ce02f7dc124ef799b1fd788902c6899f474d8d 100644 (file)
@@ -112,7 +112,7 @@ public class ImportDialog extends Dialog implements IImportDialog {
     /**
      * List of traces to import
      */
-    private final List<ImportFileInfo> fTraces = new ArrayList<ImportFileInfo>();
+    private final List<ImportFileInfo> fTraces = new ArrayList<>();
     /**
      * Selection index in project combo box.
      */
@@ -144,7 +144,7 @@ public class ImportDialog extends Dialog implements IImportDialog {
 
     @Override
     public List<ImportFileInfo> getTracePathes() {
-        List<ImportFileInfo> retList = new ArrayList<ImportFileInfo>();
+        List<ImportFileInfo> retList = new ArrayList<>();
         retList.addAll(fTraces);
         return retList;
     }
@@ -410,8 +410,8 @@ public class ImportDialog extends Dialog implements IImportDialog {
         projectGroup.setLayout(layout);
         projectGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
 
-        fProjects = new ArrayList<IProject>();
-        List<String> projectNames = new ArrayList<String>();
+        fProjects = new ArrayList<>();
+        List<String> projectNames = new ArrayList<>();
 
         for (IProject project : TraceUtils.getOpenedTmfProjects()) {
             fProjects.add(project);
This page took 0.027308 seconds and 5 git commands to generate.