fehler in reservation behoben
authorMoritz Trittibach <tritm3@bfh.ch>
Wed, 11 Nov 2015 10:51:28 +0000 (11:51 +0100)
committerMoritz Trittibach <tritm3@bfh.ch>
Wed, 11 Nov 2015 10:51:28 +0000 (11:51 +0100)
src/main/java/ch/bfh/ti/srs/dataschema/Reservation.java

index b2bef3d..8ad99e9 100644 (file)
@@ -21,12 +21,12 @@ public class Reservation {
        private String remark;\r
 \r
        public Reservation(User user, Resource resource, DateRange DateRange, String remark) {\r
        private String remark;\r
 \r
        public Reservation(User user, Resource resource, DateRange DateRange, String remark) {\r
-               if (user == null)\r
-                       throw new IllegalArgumentException("User must not be null");\r
-               if (resource == null)\r
-                       throw new IllegalArgumentException("Resource must not be null");\r
-               if (dateRange == null)\r
-                       throw new IllegalArgumentException("DateRange must not be null");\r
+//             if (user == null)\r
+//                     throw new IllegalArgumentException("User must not be null");\r
+//             if (resource == null)\r
+//                     throw new IllegalArgumentException("Resource must not be null");\r
+//             if (dateRange == null)\r
+//                     throw new IllegalArgumentException("DateRange must not be null");\r
 \r
                this.user = user;\r
                this.resource = resource;\r
 \r
                this.user = user;\r
                this.resource = resource;\r