From 6796451d16378f85037010ee87044b708df843f5 Mon Sep 17 00:00:00 2001 From: kasarit <49980037+kasarit@users.noreply.github.com> Date: Fri, 14 Jun 2019 10:58:24 +0300 Subject: [PATCH] Made MessageType Serializable --- src/main/java/fi/fmi/avi/model/MessageType.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/fi/fmi/avi/model/MessageType.java b/src/main/java/fi/fmi/avi/model/MessageType.java index 79f8925b..4907805d 100644 --- a/src/main/java/fi/fmi/avi/model/MessageType.java +++ b/src/main/java/fi/fmi/avi/model/MessageType.java @@ -1,6 +1,7 @@ package fi.fmi.avi.model; import java.io.IOException; +import java.io.Serializable; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; @@ -14,7 +15,10 @@ @JsonDeserialize(using = MessageType.Deserializer.class) @JsonSerialize(using = MessageType.Serializer.class) -public class MessageType { +public class MessageType implements Serializable { + + private static final long serialVersionUID = 8491210385030779165L; + public static final MessageType TAF = new MessageType("TAF"); public static final MessageType METAR = new MessageType("METAR"); public static final MessageType SPECI = new MessageType("SPECI");