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.framework.help.ui.test
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.framework.help.ui.test')
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/HelpContextTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/ContextParser.java4
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/HtmlParser.java2
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/TocParser.java2
4 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/HelpContextTest.java b/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/HelpContextTest.java
index 8019a3fad66..3326279209a 100644
--- a/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/HelpContextTest.java
+++ b/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/HelpContextTest.java
@@ -72,7 +72,7 @@ public class HelpContextTest {
}
private static Map<String, HelpContext> getContexts(Class<?> clazz) throws IllegalArgumentException, IllegalAccessException {
- Map<String, HelpContext> contexts = new HashMap<String, HelpContext>();
+ Map<String, HelpContext> contexts = new HashMap<>();
for (Field field : clazz.getFields()) {
Object object = field.get(null);
if (object instanceof HelpContext) {
diff --git a/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/ContextParser.java b/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/ContextParser.java
index 37b205854e2..69e19f89e0c 100644
--- a/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/ContextParser.java
+++ b/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/ContextParser.java
@@ -36,7 +36,7 @@ public class ContextParser {
private static final String HREF = "href";
private static final String ID_TAG = "id";
- public Map<String, ContextEntry> entries = new HashMap<String, ContextEntry>();
+ public Map<String, ContextEntry> entries = new HashMap<>();
public String path;
private String localName;
@@ -121,7 +121,7 @@ public class ContextParser {
public final class ContextEntry {
private final String id;
- private final Set<String> references = new LinkedHashSet<String>();
+ private final Set<String> references = new LinkedHashSet<>();
public ContextEntry(String id) {
super();
diff --git a/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/HtmlParser.java b/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/HtmlParser.java
index 8f431a79aaf..fc0623a32e6 100644
--- a/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/HtmlParser.java
+++ b/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/HtmlParser.java
@@ -56,7 +56,7 @@ public class HtmlParser {
}
public Set<String> parse(URL url) throws Exception {
- Set<String> entries = new HashSet<String>();
+ Set<String> entries = new HashSet<>();
entries.clear();
String pathPrefix = getPath(url.toString());
diff --git a/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/TocParser.java b/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/TocParser.java
index 25c5d76b035..84c2f334b9e 100644
--- a/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/TocParser.java
+++ b/plugins/org.eclipse.osee.framework.help.ui.test/src/org/eclipse/osee/framework/help/ui/util/TocParser.java
@@ -32,7 +32,7 @@ public class TocParser {
private static final String TOPIC = "topic";
private static final String HREF = "href";
- public Set<String> entries = new HashSet<String>();
+ public Set<String> entries = new HashSet<>();
public String path;
private String localName;

Back to the top