diff options
Diffstat (limited to 'src/main/java/com/juick/adapters')
-rw-r--r-- | src/main/java/com/juick/adapters/SimpleDateAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/adapters/SimpleDateAdapter.java b/src/main/java/com/juick/adapters/SimpleDateAdapter.java index 8feb8019..8f75fb7c 100644 --- a/src/main/java/com/juick/adapters/SimpleDateAdapter.java +++ b/src/main/java/com/juick/adapters/SimpleDateAdapter.java @@ -29,12 +29,12 @@ import java.time.Instant; public class SimpleDateAdapter extends XmlAdapter<String, Instant> { @Override - public String marshal(Instant v) throws Exception { + public String marshal(Instant v) { return DateFormattersHolder.getMessageFormatterInstance().format(v); } @Override - public Instant unmarshal(String v) throws Exception { + public Instant unmarshal(String v) { return DateFormattersHolder.getMessageFormatterInstance().parse(v); } } |