summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/index.rst8
-rw-r--r--ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java12
2 files changed, 14 insertions, 6 deletions
diff --git a/docs/index.rst b/docs/index.rst
new file mode 100644
index 000000000..833e1aa96
--- /dev/null
+++ b/docs/index.rst
@@ -0,0 +1,8 @@
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+
+TODO Add files to toctree and delete this header
+------------------------------------------------
+.. toctree::
+ :maxdepth: 1
+
+
diff --git a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java
index 9723ed4d5..f25ce1458 100644
--- a/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java
+++ b/ueb-listener/src/main/java/org/onap/ccsdk/sli/northbound/uebclient/SdncUebCallback.java
@@ -332,7 +332,7 @@ public class SdncUebCallback implements INotificationCallback {
deployList = new LinkedList[numPasses];
for (int i = 0 ; i < numPasses ; i++) {
- deployList[i] = new LinkedList<DeployableArtifact>();
+ deployList[i] = new LinkedList<>();
}
for (int pass = 0 ; pass < config.getMaxPasses() ; pass++) {
@@ -450,7 +450,7 @@ public class SdncUebCallback implements INotificationCallback {
}
- if (toscaYamlType == true) {
+ if (toscaYamlType) {
processToscaYaml (data, svcName, resourceName, artifact, spoolFile, archiveDir);
try {
@@ -540,7 +540,8 @@ public class SdncUebCallback implements INotificationCallback {
// Ingest Service Data - 1707
Metadata serviceMetadata = sdcCsarHelper.getServiceMetadata();
SdncServiceModel serviceModel = new SdncServiceModel(sdcCsarHelper, serviceMetadata);
- serviceModel.setFilename(spoolFile.toString().substring(spoolFile.toString().lastIndexOf("/")+1)); // will be csar file name
+ serviceModel.setFilename(spoolFile.toString().substring(spoolFile
+ .toString().lastIndexOf('/')+1)); // will be csar file name
serviceModel.setServiceInstanceNamePrefix(SdncBaseModel.extractSubstitutionMappingTypeName(sdcCsarHelper).substring(SdncBaseModel.extractSubstitutionMappingTypeName(sdcCsarHelper).lastIndexOf(".")+1));
try {
@@ -671,7 +672,7 @@ public class SdncUebCallback implements INotificationCallback {
}
// Insert VFC_TO_NETWORK_ROLE_MAPPING data
- Map<String, String> mappingParams = new HashMap<String, String>();
+ Map<String, String> mappingParams = new HashMap<>();
//String cpNetworkRoleTag = "\"" + sdcCsarHelper.getNodeTemplatePropertyLeafValue(cpNode, SdcPropertyNames.PROPERTY_NAME_NETWORKROLETAG) + "\"";
// extract network_role, network_role_tag and virtual_binding from this cpNode
SdncBaseModel.addParameter("network_role", SdncBaseModel.extractValue(sdcCsarHelper, cpNode, "network_role"), mappingParams);
@@ -956,8 +957,7 @@ public class SdncUebCallback implements INotificationCallback {
@Override
public long getTimestamp() {
- long currentTimeMillis = System.currentTimeMillis();
- return currentTimeMillis;
+ return System.currentTimeMillis();
}
@Override