Skip to content

Commit

Permalink
Add back the empty constructors used by JAXB
Browse files Browse the repository at this point in the history
  • Loading branch information
damithc committed Dec 8, 2016
1 parent 5e40f73 commit 45efdd1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/seedu/addressbook/storage/jaxb/AdaptedAddressBook.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ public class AdaptedAddressBook {
@XmlElement
private List<AdaptedTag> tags = new ArrayList<>();

/**
* No-arg constructor for JAXB use.
*/
public AdaptedAddressBook() {}

/**
* Converts a given AddressBook into this class for JAXB use.
*
Expand Down
6 changes: 6 additions & 0 deletions src/seedu/addressbook/storage/jaxb/AdaptedPerson.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ private static class AdaptedContactDetail {
@XmlElement
private List<AdaptedTag> tagged = new ArrayList<>();

/**
* No-arg constructor for JAXB use.
*/
public AdaptedPerson() {}


/**
* Converts a given Person into this class for JAXB use.
*
Expand Down
5 changes: 5 additions & 0 deletions src/seedu/addressbook/storage/jaxb/AdaptedTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 45efdd1

Please sign in to comment.