Added @Override annotation to method signature 45/15445/4
authorshashikanth <shashikanth.vh@huawei.com>
Tue, 26 Sep 2017 10:22:47 +0000 (15:52 +0530)
committerShashikanth VH <shashikanth.vh@huawei.com>
Wed, 27 Sep 2017 04:58:51 +0000 (04:58 +0000)
Fix major sonar issues in policy/drools-applications module
https://sonar.onap.org/component_issues?id=org.onap.policy.drools-applications%3Adrools-pdp-apps#resolved=false|severities=MAJOR|rules=squid%3AS1161

Added the "@Override" annotation above this method signature.

Issue-Id:POLICY-239
Change-Id: Ibb71db82d78b0df02d5d6416ac3f3f00a3780695
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/util/Serialization.java

index 9578d9a..37b148b 100644 (file)
@@ -80,6 +80,7 @@ public final class Serialization {
                private static final Logger logger = LoggerFactory.getLogger(gsonUTCAdapter.class);
                public static final DateTimeFormatter format = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSSSSSxxx");
 
+                @Override
                public ZonedDateTime deserialize(JsonElement element, Type type, JsonDeserializationContext context)
                                throws JsonParseException {
                        try {
@@ -90,6 +91,7 @@ public final class Serialization {
                        return null;
                }
 
+                @Override
                public JsonElement serialize(ZonedDateTime datetime, Type type, JsonSerializationContext context) {
                        return new JsonPrimitive(datetime.format(format));
                }