Replace type specification with diamond operator 13/14213/1
authorsurya-huawei <a.u.surya@huawei.com>
Thu, 21 Sep 2017 11:17:19 +0000 (16:47 +0530)
committersurya-huawei <a.u.surya@huawei.com>
Thu, 21 Sep 2017 11:21:17 +0000 (16:51 +0530)
Major issue in sli/plugins module
*Used diamond operator to reduce verbosity of generics code
*Removed unnecessary parantheses as they can be misleading
sometimes

Issue-Id: CCSDK-87
Change-Id: I81c0b566f5beb81d3733549a2f9de81b50d6814c
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
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 () {