From 45efdd1dd8c3342ebb550e30e17460a731a56467 Mon Sep 17 00:00:00 2001 From: "Damith C. Rajapakse" Date: Thu, 8 Dec 2016 14:32:56 +0800 Subject: [PATCH] Add back the empty constructors used by JAXB --- src/seedu/addressbook/storage/jaxb/AdaptedAddressBook.java | 5 +++++ src/seedu/addressbook/storage/jaxb/AdaptedPerson.java | 6 ++++++ src/seedu/addressbook/storage/jaxb/AdaptedTag.java | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/src/seedu/addressbook/storage/jaxb/AdaptedAddressBook.java b/src/seedu/addressbook/storage/jaxb/AdaptedAddressBook.java index 550f5cd56..1201d7a36 100644 --- a/src/seedu/addressbook/storage/jaxb/AdaptedAddressBook.java +++ b/src/seedu/addressbook/storage/jaxb/AdaptedAddressBook.java @@ -24,6 +24,11 @@ public class AdaptedAddressBook { @XmlElement private List tags = new ArrayList<>(); + /** + * No-arg constructor for JAXB use. + */ + public AdaptedAddressBook() {} + /** * Converts a given AddressBook into this class for JAXB use. * diff --git a/src/seedu/addressbook/storage/jaxb/AdaptedPerson.java b/src/seedu/addressbook/storage/jaxb/AdaptedPerson.java index 747f5853e..73c0a6ef6 100644 --- a/src/seedu/addressbook/storage/jaxb/AdaptedPerson.java +++ b/src/seedu/addressbook/storage/jaxb/AdaptedPerson.java @@ -36,6 +36,12 @@ private static class AdaptedContactDetail { @XmlElement private List tagged = new ArrayList<>(); + /** + * No-arg constructor for JAXB use. + */ + public AdaptedPerson() {} + + /** * Converts a given Person into this class for JAXB use. * diff --git a/src/seedu/addressbook/storage/jaxb/AdaptedTag.java b/src/seedu/addressbook/storage/jaxb/AdaptedTag.java index e13c0c097..cd5286a36 100644 --- a/src/seedu/addressbook/storage/jaxb/AdaptedTag.java +++ b/src/seedu/addressbook/storage/jaxb/AdaptedTag.java @@ -14,6 +14,11 @@ public class AdaptedTag { @XmlValue public String tagName; + /** + * No-arg constructor for JAXB use. + */ + public AdaptedTag() {} + /** * Converts a given Tag into this class for JAXB use. *