aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-09-27 20:16:00 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-27 20:16:00 +0000
commit060a99c988e622e7c8010bf8519aafbc0cdd6c81 (patch)
tree79bb0c7c2838fa37733c7675cb9fa6f1b251b9b2 /controlloop
parent817bd6c46fabe57a9622cafcad88c9a3d087f8e3 (diff)
parent6ef67aebc4b3e9772a63eb8dfbe5fa57c70908ee (diff)
Merge "Added @Override annotation to method signature"
Diffstat (limited to 'controlloop')
-rw-r--r--controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/util/Serialization.java2
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));
}