Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2015-09-28 18:49:18 +0000
committerRyan D. Brooks2015-09-28 18:49:18 +0000
commit071fcbc5cca4e22e650bb459701f5fc9be701013 (patch)
treeac629d866ecfea675bc4e134c68315440282d560 /plugins/org.eclipse.osee.ote.ui
parentb4f6f62b0d3af365b67a3786dbb24c97fa638536 (diff)
downloadorg.eclipse.osee-071fcbc5cca4e22e650bb459701f5fc9be701013.tar.gz
org.eclipse.osee-071fcbc5cca4e22e650bb459701f5fc9be701013.tar.xz
org.eclipse.osee-071fcbc5cca4e22e650bb459701f5fc9be701013.zip
refactor: Use type inference when invoking a generic constructor
Diffstat (limited to 'plugins/org.eclipse.osee.ote.ui')
-rw-r--r--plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/ProjectNatureTest.java2
-rw-r--r--plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/navigate/OteNavigateViewItems.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/ProjectNatureTest.java b/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/ProjectNatureTest.java
index b3d5499f9d..1b59976f22 100644
--- a/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/ProjectNatureTest.java
+++ b/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/ProjectNatureTest.java
@@ -20,7 +20,7 @@ public class ProjectNatureTest implements IProjectNature {
public static final String TEST_NATURE = "org.eclipse.osee.ote.ui.testnature";
- private static List<IProject> testProjects = new ArrayList<IProject>();
+ private static List<IProject> testProjects = new ArrayList<>();
private IProject project;
diff --git a/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/navigate/OteNavigateViewItems.java b/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/navigate/OteNavigateViewItems.java
index 276a5fb50e..30159408a2 100644
--- a/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/navigate/OteNavigateViewItems.java
+++ b/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/navigate/OteNavigateViewItems.java
@@ -36,7 +36,7 @@ public class OteNavigateViewItems implements XNavigateViewItems {
@Override
public List<XNavigateItem> getSearchNavigateItems() {
- List<XNavigateItem> items = new ArrayList<XNavigateItem>();
+ List<XNavigateItem> items = new ArrayList<>();
try {
addExtensionPointItems(items);
} catch (OseeCoreException ex) {
@@ -68,7 +68,7 @@ public class OteNavigateViewItems implements XNavigateViewItems {
}
private Map<String, XNavigateItem> createCategoriesAndAddToItems(List<XNavigateItem> items, Collection<XNavigateExtensionPointData> oteNavigateItemExtensions) {
- Map<String, XNavigateItem> categoryToNavigateItem = new HashMap<String, XNavigateItem>();
+ Map<String, XNavigateItem> categoryToNavigateItem = new HashMap<>();
for (XNavigateExtensionPointData data : oteNavigateItemExtensions) {
if (!categoryToNavigateItem.containsKey(data.getCategory())) {
String[] path = data.getItemPath();

Back to the top