diff --git a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/config/RuntimeTypeAdapterFactory.java b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/config/RuntimeTypeAdapterFactory.java index 7c1a223..982b8df 100644 --- a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/config/RuntimeTypeAdapterFactory.java +++ b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/config/RuntimeTypeAdapterFactory.java @@ -202,7 +202,6 @@ public final class RuntimeTypeAdapterFactory implements TypeAdapterFactory { private void initMaps( Gson gson, - TypeToken type, Map> labelToDelegate, Map, TypeAdapter> subtypeToDelegate) { for (Map.Entry> entry : labelToSubtype.entrySet()) { @@ -243,7 +242,7 @@ public final class RuntimeTypeAdapterFactory implements TypeAdapterFactory { final Map, TypeAdapter> subtypeToDelegate = new LinkedHashMap<>(labelToSubtype.size()); - initMaps(gson, type, labelToDelegate, subtypeToDelegate); + initMaps(gson, labelToDelegate, subtypeToDelegate); final RuntimeTypeAdapterFactory that = this; return new TypeAdapter() { diff --git a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/SecurityCamera.java b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/SecurityCamera.java index c977130..218ba4a 100644 --- a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/SecurityCamera.java +++ b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/SecurityCamera.java @@ -17,7 +17,6 @@ public class SecurityCamera extends Switchable implements BooleanTriggerable { private boolean on; @Column(name = "video", nullable = false) - @NotNull private String path; public String getPath() {