summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManoop Talasila <talasila@research.att.com>2019-07-09 15:17:21 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-09 15:17:21 +0000
commit169e82b991494345fdbe4da555a5e8fb57caf129 (patch)
tree8828cb8bc6d95c99dc1d61e1f8636927116a0bfc
parentcc2d5a7fb10681b7a8ab9789c70f0d3338e2e8f6 (diff)
parent051682f36bcb97afadbcff3b513a75a86f9f7199 (diff)
Merge "Fix sonar issues in LogRegistry"
-rw-r--r--ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/scheduler/LogRegistry.java17
1 files changed, 6 insertions, 11 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/scheduler/LogRegistry.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/scheduler/LogRegistry.java
index 5c80b916..93c814d0 100644
--- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/scheduler/LogRegistry.java
+++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/scheduler/LogRegistry.java
@@ -52,24 +52,19 @@ import org.springframework.stereotype.Component;
@DependsOn({ "systemProperties" })
public class LogRegistry extends CronRegistry {
- private static final String groupName = "AppGroup";
- private static final String jobName = "LogJob";
- private static final String triggerName = "LogTrigger";
+ private static final String GROUP_NAME = "AppGroup";
+ private static final String JOB_NAME = "LogJob";
+ private static final String TRIGGER_NAME = "LogTrigger";
- // @Autowired
- // private SystemProperties systemProperties;
-
- // @Bean
public JobDetailFactoryBean jobDetailFactoryBean() {
- Map<String, Object> map = new HashMap<String, Object>();
+ Map<String, Object> map = new HashMap<>();
map.put("units", "bytes");
- return jobDetailFactoryBean(groupName, jobName, LogJob.class, map);
+ return jobDetailFactoryBean(GROUP_NAME, JOB_NAME, LogJob.class, map);
}
- // @Bean
public CronTriggerFactoryBean cronTriggerFactoryBean() throws ParseException {
// "0 * * * * ? *
- return cronTriggerFactoryBean(groupName, triggerName, SystemProperties.getProperty(SystemProperties.LOG_CRON));
+ return cronTriggerFactoryBean(GROUP_NAME, TRIGGER_NAME, SystemProperties.getProperty(SystemProperties.LOG_CRON));
}
}