Shared trips now serialise story 9

This commit is contained in:
Fan-Wu Yang
2017-06-01 17:09:41 +12:00
parent f23128a61e
commit 6b80a2a128
3 changed files with 2 additions and 2 deletions
@@ -140,8 +140,8 @@ public class DataManagerSerialiser extends Serialiser {
trip.deserialise();
}
Reader reader5 = new InputStreamReader(getClass().getClassLoader().getResourceAsStream("serialisation/trips.json"), "UTF-8");
ArrayList<SharedTrip> sharedTrips = gson.fromJson(reader4, new TypeToken<ArrayList<SharedTrip>>(){}.getType());
Reader reader5 = new InputStreamReader(getClass().getClassLoader().getResourceAsStream("serialisation/sharedtrips.json"), "UTF-8");
ArrayList<SharedTrip> sharedTrips = gson.fromJson(reader5, new TypeToken<ArrayList<SharedTrip>>(){}.getType());
reader5.close();
for (SharedTrip trip: sharedTrips){