From 530c27683d89214372a33b844e4606517b5ce8d4 Mon Sep 17 00:00:00 2001 From: Prudence Au Date: Wed, 8 Aug 2018 12:00:11 -0400 Subject: address sonar issue Change-Id: I17f6fef6f9ca8e3188f5a05a89ace3901c9c5193 Issue-ID: LOG-519 Signed-off-by: Prudence Au --- .../java/org/onap/pomba/contextaggregator/builder/ContextBuilder.java | 4 ++-- .../pomba/contextaggregator/service/ContextAggregatorProcessor.java | 3 +-- 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 { * 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; -- cgit 1.2.3-korg