Merge "Replace type specification with diamond operator"
authorDan Timoney <dtimoney@att.com>
Thu, 21 Sep 2017 14:50:05 +0000 (14:50 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 21 Sep 2017 14:50:05 +0000 (14:50 +0000)
fabric-discovery-plugin/provider/src/main/java/org/onap/ccsdk/sli/plugins/fabricdiscovery/FabricDiscoveryPlugin.java

index 6645275..99e171f 100644 (file)
@@ -44,7 +44,7 @@ public class FabricDiscoveryPlugin implements SvcLogicJavaPlugin, IFabricDiscove
 
     public FabricDiscoveryPlugin() {
         service = Executors.newFixedThreadPool(10);
-        streamMap = new ConcurrentHashMap<String, WebSocketClient> ();
+        streamMap = new ConcurrentHashMap<>();
     }
 
     @Override
@@ -70,7 +70,7 @@ public class FabricDiscoveryPlugin implements SvcLogicJavaPlugin, IFabricDiscove
         }
 
         ctx.setAttribute(pfx + FB_DISCOVERY_STATUS, "Success");
-        LOG.info("{} monitoring notification stream: {}", (enable) ? "START" : "STOP", stream);
+        LOG.info("{} monitoring notification stream: {}", enable ? "START" : "STOP", stream);
 
         try {
             service.execute(new Runnable () {