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.framework.resource.management/src
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.resource.management/src')
-rw-r--r--plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceManager.java b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceManager.java
index b54f5127f5..79633e1fb3 100644
--- a/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceManager.java
+++ b/plugins/org.eclipse.osee.framework.resource.management/src/org/eclipse/osee/framework/resource/management/internal/ResourceManager.java
@@ -33,8 +33,8 @@ public class ResourceManager implements IResourceManager {
private final Collection<IResourceLocatorProvider> resourceLocatorProviders;
public ResourceManager() {
- this.resourceProviders = new CopyOnWriteArraySet<IResourceProvider>();
- this.resourceLocatorProviders = new CopyOnWriteArraySet<IResourceLocatorProvider>();
+ this.resourceProviders = new CopyOnWriteArraySet<>();
+ this.resourceLocatorProviders = new CopyOnWriteArraySet<>();
}
private IResourceProvider getProvider(IResourceLocator locator) throws OseeCoreException {
@@ -86,7 +86,7 @@ public class ResourceManager implements IResourceManager {
@Override
public Collection<String> getProtocols() {
- Set<String> protocols = new HashSet<String>();
+ Set<String> protocols = new HashSet<>();
for (IResourceLocatorProvider provider : resourceLocatorProviders) {
protocols.add(provider.getSupportedProtocol());
}

Back to the top