Shared trips now serialise story 9
This commit is contained in:
@@ -140,8 +140,8 @@ public class DataManagerSerialiser extends Serialiser {
|
|||||||
trip.deserialise();
|
trip.deserialise();
|
||||||
}
|
}
|
||||||
|
|
||||||
Reader reader5 = new InputStreamReader(getClass().getClassLoader().getResourceAsStream("serialisation/trips.json"), "UTF-8");
|
Reader reader5 = new InputStreamReader(getClass().getClassLoader().getResourceAsStream("serialisation/sharedtrips.json"), "UTF-8");
|
||||||
ArrayList<SharedTrip> sharedTrips = gson.fromJson(reader4, new TypeToken<ArrayList<SharedTrip>>(){}.getType());
|
ArrayList<SharedTrip> sharedTrips = gson.fromJson(reader5, new TypeToken<ArrayList<SharedTrip>>(){}.getType());
|
||||||
reader5.close();
|
reader5.close();
|
||||||
|
|
||||||
for (SharedTrip trip: sharedTrips){
|
for (SharedTrip trip: sharedTrips){
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user