changes
This commit is contained in:
@@ -17,6 +17,7 @@ import java.nio.file.attribute.BasicFileAttributes;
|
||||
import java.time.ZonedDateTime;
|
||||
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import lodge.reservation.Reservation;
|
||||
|
||||
import lodge.reservationsystem.AccomodationManager;
|
||||
import lodge.reservationsystem.CabinReservation;
|
||||
@@ -45,11 +46,11 @@ public final class DataRepository {
|
||||
public final static Reservation Reservation(String type) {
|
||||
switch (type) {
|
||||
case "HotelReservation":
|
||||
return HotelReservation.copy(type);
|
||||
return new HotelReservation();
|
||||
case "HouseReservation":
|
||||
return HouseReservation.copy(type);
|
||||
return new HouseReservation();
|
||||
case "CabinReservation":
|
||||
return CabinReservation.copy(type);
|
||||
return new CabinReservation();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user