summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPrudence Au <prudence.au@amdocs.com>2018-08-08 12:00:11 -0400
committerPrudence Au <prudence.au@amdocs.com>2018-08-08 15:07:45 -0400
commit530c27683d89214372a33b844e4606517b5ce8d4 (patch)
tree33e530be4aa44293881a70cf8f06f259787b7e93 /src
parent39645e869455f55f8873bf814ae9679476bb5509 (diff)
address sonar issue
Change-Id: I17f6fef6f9ca8e3188f5a05a89ace3901c9c5193 Issue-ID: LOG-519 Signed-off-by: Prudence Au <prudence.au@amdocs.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/pomba/contextaggregator/builder/ContextBuilder.java4
-rw-r--r--src/main/java/org/onap/pomba/contextaggregator/service/ContextAggregatorProcessor.java3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/org/onap/pomba/contextaggregator/builder/ContextBuilder.java b/src/main/java/org/onap/pomba/contextaggregator/builder/ContextBuilder.java
index c1ef808..966ebd1 100644
--- a/src/main/java/org/onap/pomba/contextaggregator/builder/ContextBuilder.java
+++ b/src/main/java/org/onap/pomba/contextaggregator/builder/ContextBuilder.java
@@ -33,7 +33,7 @@ public class ContextBuilder {
private static final String READ_TIMEOUT = "read.timeout.ms";
private static final String BASE_URI = "base.uri";
private static final String USERNAME = "basicauth.username";
- private static final String PASSWORD = "basicauth.password";
+ private static final String CREDENTIAL = "basicauth.password";
private Properties properties;
private String contextName;
@@ -98,6 +98,6 @@ public class ContextBuilder {
}
public String getPassword() {
- return properties.getProperty(PASSWORD);
+ return properties.getProperty(CREDENTIAL);
}
}
diff --git a/src/main/java/org/onap/pomba/contextaggregator/service/ContextAggregatorProcessor.java b/src/main/java/org/onap/pomba/contextaggregator/service/ContextAggregatorProcessor.java
index 9d82fb6..5924b15 100644
--- a/src/main/java/org/onap/pomba/contextaggregator/service/ContextAggregatorProcessor.java
+++ b/src/main/java/org/onap/pomba/contextaggregator/service/ContextAggregatorProcessor.java
@@ -74,9 +74,8 @@ public class ContextAggregatorProcessor implements Callable<Void> {
* aggregated models to DMaaP.
*
* @param payload
- * @throws Exception
*/
- public void process(String payload) throws Exception {
+ public void process(String payload) {
log.debug("Consumed event: " + payload);
POAEvent event;