Replace type specification with diamond operato 13/17213/2 master
authorramanjaneya <ramanjaneya.palleti@huawei.com>
Wed, 4 Oct 2017 12:45:09 +0000 (18:15 +0530)
committerRamanjaneya Reddy <ramanjaneya.palleti@huawei.com>
Wed, 4 Oct 2017 12:47:37 +0000 (12:47 +0000)
Issue-ID: AAI-412
Change-Id: Ie6db3c9ed8907c65a77dd96a26b217c0fe9ffba8
Signed-off-by: ramanjaneya <ramanjaneya.palleti@huawei.com>
ajsc-aai/src/main/java/org/openecomp/aai/ajsc_aai/filemonitor/ServicePropertiesMap.java

index 9bfcad0..6273c04 100644 (file)
@@ -32,6 +32,9 @@ import org.slf4j.LoggerFactory;
 
 public class ServicePropertiesMap {
 
+    private ServicePropertiesMap {
+    }
+
     private static HashMap<String, HashMap<String, String>> mapOfMaps = new HashMap<>();
     private static final Logger logger = LoggerFactory.getLogger(ServicePropertiesMap.class);
 
@@ -68,7 +71,7 @@ public class ServicePropertiesMap {
                     prop.load(fis);
 
                     @SuppressWarnings("unchecked")
-                    HashMap<String, String> propMap = new HashMap<String, String>((Map) prop);
+                    HashMap<String, String> propMap = new HashMap<>((Map) prop);
 
                     mapOfMaps.put(file.getName(), propMap);
                 }