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.cluster.rest
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.cluster.rest')
-rw-r--r--plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/ClusterRestApplication.java2
-rw-r--r--plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/MembersResource.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/ClusterRestApplication.java b/plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/ClusterRestApplication.java
index 353b4018ad..48450d60df 100644
--- a/plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/ClusterRestApplication.java
+++ b/plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/ClusterRestApplication.java
@@ -42,7 +42,7 @@ public class ClusterRestApplication extends Application {
@Override
public Set<Class<?>> getClasses() {
- Set<Class<?>> resources = new HashSet<Class<?>>();
+ Set<Class<?>> resources = new HashSet<>();
resources.add(MembersResource.class);
resources.add(JobsResource.class);
return resources;
diff --git a/plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/MembersResource.java b/plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/MembersResource.java
index 5af2415eed..0daf06f320 100644
--- a/plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/MembersResource.java
+++ b/plugins/org.eclipse.osee.cluster.rest/src/org/eclipse/osee/cluster/rest/internal/MembersResource.java
@@ -36,7 +36,7 @@ public class MembersResource {
@GET
@Produces(MediaType.TEXT_XML)
public List<XmlMember> getMemberBrowser() {
- List<XmlMember> todos = new ArrayList<XmlMember>();
+ List<XmlMember> todos = new ArrayList<>();
for (Member member : ClusterRestApplication.getMembers()) {
todos.add(ClusterUtil.fromMember(member));
}
@@ -46,7 +46,7 @@ public class MembersResource {
@GET
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
public List<XmlMember> getMembers() {
- List<XmlMember> todos = new ArrayList<XmlMember>();
+ List<XmlMember> todos = new ArrayList<>();
for (Member member : ClusterRestApplication.getMembers()) {
todos.add(ClusterUtil.fromMember(member));
}

Back to the top