Skip to content

Commit

Permalink
Made MessageType Serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
kasarit committed Jun 14, 2019
1 parent edc8b29 commit 6796451
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/fi/fmi/avi/model/MessageType.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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");
Expand Down

0 comments on commit 6796451

Please sign in to comment.