Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2015-09-28 14:49:18 -0400
committerRyan D. Brooks2015-09-28 14:49:18 -0400
commit071fcbc5cca4e22e650bb459701f5fc9be701013 (patch)
treeac629d866ecfea675bc4e134c68315440282d560 /plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse
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.version.svn/src/org/eclipse')
-rw-r--r--plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/ScriptToProject.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/ScriptToProject.java b/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/ScriptToProject.java
index 8fc58cb58d..cc7cc8d701 100644
--- a/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/ScriptToProject.java
+++ b/plugins/org.eclipse.osee.ote.version.svn/src/org/eclipse/osee/ote/version/svn/ScriptToProject.java
@@ -16,8 +16,8 @@ import org.eclipse.team.svn.core.utility.SVNUtility;
public class ScriptToProject {
- private final Map<String, Set<String>> projectsScriptsMap = new HashMap<String, Set<String>>();
- private final Map<String, File> scriptNameToScriptFileMap = new HashMap<String, File>();
+ private final Map<String, Set<String>> projectsScriptsMap = new HashMap<>();
+ private final Map<String, File> scriptNameToScriptFileMap = new HashMap<>();
private final IProject[] workspaceProjects;
public ScriptToProject(IProject[] workspaceProjects) {
@@ -52,7 +52,7 @@ public class ScriptToProject {
public void addScriptListValue(String key, String value) {
Set<String> values = projectsScriptsMap.get(key);
if (values == null) {
- values = new HashSet<String>();
+ values = new HashSet<>();
projectsScriptsMap.put(key, values);
}
values.add(value);

Back to the top