aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2018-03-12 19:33:49 +0100
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2018-03-12 19:33:49 +0100
commitb4fac9a908a16662ae63cbda0c5e5e4c5977fd96 (patch)
tree201a3a8def7238e90da6b7fa2c52e41fe6ba8a03
parent02490407e31862b68832185cc7e299f6d7dece96 (diff)
Rework the SDC config
Rework the SDC configuration code Issue-ID: CLAMP-81 Change-Id: Ic924f1c2c35e096bf3cd5b8e4075cbab83cc3f11 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
-rw-r--r--src/main/java/org/onap/clamp/clds/config/sdc/SdcControllersConfiguration.java3
-rw-r--r--src/main/java/org/onap/clamp/clds/util/ResourceFileUtil.java2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/onap/clamp/clds/config/sdc/SdcControllersConfiguration.java b/src/main/java/org/onap/clamp/clds/config/sdc/SdcControllersConfiguration.java
index 5b5490426..f1a961840 100644
--- a/src/main/java/org/onap/clamp/clds/config/sdc/SdcControllersConfiguration.java
+++ b/src/main/java/org/onap/clamp/clds/config/sdc/SdcControllersConfiguration.java
@@ -71,8 +71,7 @@ public class SdcControllersConfiguration {
}
public SdcSingleControllerConfiguration getSdcSingleControllerConfiguration(String controllerName) {
- Map<String, SdcSingleControllerConfiguration> controllerMap = getAllDefinedControllers();
- return controllerMap.get(controllerName);
+ return getAllDefinedControllers().get(controllerName);
}
/**
diff --git a/src/main/java/org/onap/clamp/clds/util/ResourceFileUtil.java b/src/main/java/org/onap/clamp/clds/util/ResourceFileUtil.java
index 720576c47..0402754ac 100644
--- a/src/main/java/org/onap/clamp/clds/util/ResourceFileUtil.java
+++ b/src/main/java/org/onap/clamp/clds/util/ResourceFileUtil.java
@@ -52,7 +52,7 @@ public final class ResourceFileUtil {
}
/**
- * Return resource as a Stream.
+ * Return resource as a String.
*/
public static String getResourceAsString(String name) throws IOException {
InputStream is = getResourceAsStream(name);