diff options
author | 2018-03-08 16:58:43 +0800 | |
---|---|---|
committer | 2018-03-08 16:58:43 +0800 | |
commit | 81304def362b19075438af781727e21ce8374bae (patch) | |
tree | 6a52682f36c6b1c60fbbda5aa8c07b90938d918e /holmes-actions/src/main/java/org/onap | |
parent | bf20ddf00200c5468da7a0090caf28beebb93e9c (diff) |
Fix Bugs Identified by Sonar
Change-Id: I42d0323a95637a5b5c2c16a61f3b548d36182bee
Issue-ID: HOLMES-118
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'holmes-actions/src/main/java/org/onap')
-rw-r--r-- | holmes-actions/src/main/java/org/onap/holmes/common/api/stat/VesAlarm.java | 3 | ||||
-rw-r--r-- | holmes-actions/src/main/java/org/onap/holmes/common/dropwizard/ioc/bundle/AutoConfigBundle.java | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/api/stat/VesAlarm.java b/holmes-actions/src/main/java/org/onap/holmes/common/api/stat/VesAlarm.java index ead8464..ae71ad4 100644 --- a/holmes-actions/src/main/java/org/onap/holmes/common/api/stat/VesAlarm.java +++ b/holmes-actions/src/main/java/org/onap/holmes/common/api/stat/VesAlarm.java @@ -29,7 +29,8 @@ public class VesAlarm implements Cloneable, Serializable{ private String eventId; private String eventName; private String eventType; - private Object internalHeaderFields; + //Temporarily make it transient cuz no details of this field is provided and it is not used for now. + transient private Object internalHeaderFields; private Long lastEpochMicrosec; private String nfcNamingCode; private String nfNamingCode; diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/dropwizard/ioc/bundle/AutoConfigBundle.java b/holmes-actions/src/main/java/org/onap/holmes/common/dropwizard/ioc/bundle/AutoConfigBundle.java index b8552b2..db4f341 100644 --- a/holmes-actions/src/main/java/org/onap/holmes/common/dropwizard/ioc/bundle/AutoConfigBundle.java +++ b/holmes-actions/src/main/java/org/onap/holmes/common/dropwizard/ioc/bundle/AutoConfigBundle.java @@ -58,7 +58,7 @@ import org.slf4j.LoggerFactory; /** * complete the integration of hK2 container and dropwizard - * + * * @author hu.rui * */ @@ -276,12 +276,9 @@ public class AutoConfigBundle<T extends Configuration> implements ConfiguredBund bind(configuration); LOG.info("Registering Dropwizard Configuration class name:{}", configuration.getClass().getName()); - if (configuration instanceof Configuration) { bind((Configuration) configuration).to(Configuration.class); LOG.info("Registering Dropwizard Configuration class name:{}", Configuration.class.getName()); - } - } }); |