From 5e1b07d32f4417430a81be579c73b712ee24cc10 Mon Sep 17 00:00:00 2001 From: "Claudio Maggioni (maggicl)" Date: Sun, 10 May 2020 20:47:18 +0200 Subject: [PATCH] Even another batch of sonar fixes --- .../sanmarinoes/smarthut/config/RuntimeTypeAdapterFactory.java | 3 +-- .../inf/sa4/sanmarinoes/smarthut/models/SecurityCamera.java | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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() {