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.client
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.client')
-rw-r--r--plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/JmsToJiniBridgeConnector.java2
-rw-r--r--plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/JmsToJiniBridgeConnectorLite.java2
-rw-r--r--plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/core/TestClientServiceImpl.java6
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/JmsToJiniBridgeConnector.java b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/JmsToJiniBridgeConnector.java
index faf3abdd15..3db200f255 100644
--- a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/JmsToJiniBridgeConnector.java
+++ b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/JmsToJiniBridgeConnector.java
@@ -49,7 +49,7 @@ public class JmsToJiniBridgeConnector implements IServiceConnector {
}
private EnhancedProperties properties;
- private final HashMap<Object, ExportInfo> exports = new HashMap<Object, ExportInfo>();
+ private final HashMap<Object, ExportInfo> exports = new HashMap<>();
private final ExportClassLoader exportClassLoader;
private final Object service;
private final List<IServicePropertyChangeListener> propertyChangeListeners =
diff --git a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/JmsToJiniBridgeConnectorLite.java b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/JmsToJiniBridgeConnectorLite.java
index 375492cc6b..270e0b722b 100644
--- a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/JmsToJiniBridgeConnectorLite.java
+++ b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/JmsToJiniBridgeConnectorLite.java
@@ -66,7 +66,7 @@ public class JmsToJiniBridgeConnectorLite implements IServiceConnector, OseeMess
private MessageService messageService;
private OteServiceRequestHandler myOteServiceRequestHandler = new OteServiceRequestHandler();
private EnhancedProperties properties;
- private final HashMap<Object, ExportInfo> exports = new HashMap<Object, ExportInfo>();
+ private final HashMap<Object, ExportInfo> exports = new HashMap<>();
private final ExportClassLoader exportClassLoader;
private final List<IServicePropertyChangeListener> propertyChangeListeners =
new CopyOnWriteArrayList<IServicePropertyChangeListener>();
diff --git a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/core/TestClientServiceImpl.java b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/core/TestClientServiceImpl.java
index 442c658b10..917f702994 100644
--- a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/core/TestClientServiceImpl.java
+++ b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/core/TestClientServiceImpl.java
@@ -47,7 +47,7 @@ public class TestClientServiceImpl implements IOteClientService, IConnectorListe
private static final String NO_USER_MSG = "a user has not been set";
private final IConnectionService connectionService;
- private final HashMap<String, IServiceConnector> testHosts = new HashMap<String, IServiceConnector>();
+ private final HashMap<String, IServiceConnector> testHosts = new HashMap<>();
private final ListenerNotifier listenerNotifier = new ListenerNotifier();
private final HashSet<ITestEnvironmentAvailibilityListener> hostAvailabilityListeners =
new HashSet<ITestEnvironmentAvailibilityListener>();
@@ -75,7 +75,7 @@ public class TestClientServiceImpl implements IOteClientService, IConnectorListe
final Set<Entry<String, IServiceConnector>> entrySet;
synchronized (this) {
if (hostAvailabilityListeners.add(listener)) {
- entrySet = new HashSet<Entry<String,IServiceConnector>>(testHosts.entrySet());
+ entrySet = new HashSet<>(testHosts.entrySet());
} else {
entrySet = Collections.emptySet();
}
@@ -317,7 +317,7 @@ public class TestClientServiceImpl implements IOteClientService, IConnectorListe
@Override
public synchronized List<IServiceConnector> getAvailableTestHosts() {
- List<IServiceConnector> envs = new ArrayList<IServiceConnector>();
+ List<IServiceConnector> envs = new ArrayList<>();
for (IServiceConnector conn : testHosts.values()) {
envs.add(conn);
}

Back to the top