summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorNTNET\renealr <reneal.rogers@amdocs.com>2017-10-16 11:35:50 -0400
committerNTNET\renealr <reneal.rogers@amdocs.com>2017-10-16 15:39:07 -0400
commitb2c0bdb5963a7826ad25513accf7ae0d2d2a97c6 (patch)
treee9a125613178435362d8bac0cb85d713647c9a25 /src/main
parentd362f2c631413e72103a69a1344c1fa3d34cfc06 (diff)
added more fixes to the failed sonar issues
ParseException was introduced to handle the generic in SynchronizerConfiguration class Issue-ID: AAI-429 Change-Id: I3d52729de7b299fb254c6bc05fcf87b8a6bc314b Signed-off-by: NTNET\renealr <reneal.rogers@amdocs.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/aai/sparky/synchronizer/config/SynchronizerConfiguration.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/org/onap/aai/sparky/synchronizer/config/SynchronizerConfiguration.java b/src/main/java/org/onap/aai/sparky/synchronizer/config/SynchronizerConfiguration.java
index 3e4afff..a556dc7 100644
--- a/src/main/java/org/onap/aai/sparky/synchronizer/config/SynchronizerConfiguration.java
+++ b/src/main/java/org/onap/aai/sparky/synchronizer/config/SynchronizerConfiguration.java
@@ -24,6 +24,7 @@ package org.onap.aai.sparky.synchronizer.config;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
+import java.text.ParseException;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
@@ -70,12 +71,12 @@ public class SynchronizerConfiguration {
/**
* Instantiates a new synchronizer configuration.
*/
- public SynchronizerConfiguration() throws NumberFormatException,PatternSyntaxException,Exception {
+ public SynchronizerConfiguration() throws NumberFormatException,PatternSyntaxException,ParseException {
Properties props = ConfigHelper.loadConfigFromExplicitPath(CONFIG_FILE);
initialize(props);
}
- public SynchronizerConfiguration(Properties props) throws NumberFormatException, PatternSyntaxException, Exception {
+ public SynchronizerConfiguration(Properties props) throws NumberFormatException, PatternSyntaxException, ParseException {
initialize(props);
}
/**
@@ -83,7 +84,7 @@ public class SynchronizerConfiguration {
*
* @throws Exception the exception
*/
- protected void initialize(Properties props) throws NumberFormatException, PatternSyntaxException, Exception {
+ protected void initialize(Properties props) throws NumberFormatException, PatternSyntaxException, ParseException {
// parse config for startup sync
try {
@@ -145,7 +146,7 @@ public class SynchronizerConfiguration {
} else {
LOG.info(AaiUiMsgs.SYNC_START_TIME);
}
- } catch (Exception exc) {
+ } catch (ParseException exc) {
this.setConfigOkForPeriodicSync(false);
String message = "Invalid configuration for synchronizer parameter:"
+ " 'synchronizer.syncTask.startTimestamp'";