summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-common
diff options
context:
space:
mode:
authorburdziak <olaf.burdziakowski@nokia.com>2019-07-08 15:17:33 +0200
committerburdziak <olaf.burdziakowski@nokia.com>2019-07-08 15:17:33 +0200
commit051682f36bcb97afadbcff3b513a75a86f9f7199 (patch)
tree96216f75cecb418e74dbef6b08885c5b2d4206ca /ecomp-sdk/epsdk-app-common
parent179ff1eb0c1ac9eef4d152c47df5cb12a4584c0f (diff)
Fix sonar issues in LogRegistry
Change-Id: I0aeaed5291a5c1c8fd7f4ccacbd78f6974c5e8e0 Issue-ID: PORTAL-523 Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-common')
-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));
}
}