Remove unnecessary constructs
*Remove unused imports
*Remove useless paranthesis
This is done as sometimes they can be misleading
*Replace type specification with diamond operator(<>)
This is done to reduce verbosity of generics code
Issue-Id: CCSDK-87
Change-Id: Ic356859939fe40cecec2e65c96d79cd6a655787e
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
diff --git a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncArtifactMap.java b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncArtifactMap.java
index 9b36cb6..3605465 100644
--- a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncArtifactMap.java
+++ b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncArtifactMap.java
@@ -24,7 +24,6 @@
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
-import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
@@ -57,7 +56,7 @@
}
public String getRpcUrl(String base) {
- return(base+rpc);
+ return base+rpc;
}
private SdncArtifactType(String tag, String rpc, String pass) {
@@ -73,7 +72,7 @@
- private Map<String, SdncArtifactType> mapItems = new HashMap<String, SdncArtifactType>();
+ private Map<String, SdncArtifactType> mapItems = new HashMap<>();
private int NumPasses = 1;
@@ -110,9 +109,9 @@
public SdncArtifactType getMapping(String tag) {
if (mapItems.containsKey(tag)) {
- return(mapItems.get(tag));
+ return mapItems.get(tag);
} else {
- return(null);
+ return null;
}
}