Skip to content

Commit 5aae76b

Browse files
Neil DEVASNeil DEVAS
authored andcommitted
add reserved item class to allowed classes in xml persistor
1 parent d137566 commit 5aae76b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/group25/Utils/XMLPersistor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class XMLPersistor {
2222

2323
private XStream xstream;
2424

25+
// TODO just make this an AbstractRMHHashmapManager
2526
public XMLPersistor(Class classToWrite) {
2627
XStream xstream = new XStream();
2728
XStream.setupDefaultSecurity(xstream);
@@ -33,6 +34,7 @@ public XMLPersistor(Class classToWrite) {
3334
Room.class,
3435
Car.class,
3536
Customer.class,
37+
ReservedItem.class,
3638
});
3739
this.xstream = xstream;
3840
}

0 commit comments

Comments
 (0)