diff options
author | shashikanth <shashikanth.vh@huawei.com> | 2017-09-26 15:52:47 +0530 |
---|---|---|
committer | Shashikanth VH <shashikanth.vh@huawei.com> | 2017-09-27 04:58:51 +0000 |
commit | 6ef67aebc4b3e9772a63eb8dfbe5fa57c70908ee (patch) | |
tree | c2d41ee0d43677a42796e1bdfd675e54ccdb63ae /controlloop/common/model-impl | |
parent | 83e5f06aef61e32463c97241fd6a5cfef6679206 (diff) |
Added @Override annotation to method signature
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>
Diffstat (limited to 'controlloop/common/model-impl')
-rw-r--r-- | controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/util/Serialization.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/util/Serialization.java b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/util/Serialization.java index 9578d9ac2..37b148beb 100644 --- a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/util/Serialization.java +++ b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/util/Serialization.java @@ -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)); } |