Even another batch of sonar fixes

This commit is contained in:
Claudio Maggioni (maggicl) 2020-05-10 20:47:18 +02:00
parent 573a5c6a91
commit 5e1b07d32f
2 changed files with 1 additions and 3 deletions

View file

@ -202,7 +202,6 @@ public final class RuntimeTypeAdapterFactory<T> implements TypeAdapterFactory {
private <R> void initMaps( private <R> void initMaps(
Gson gson, Gson gson,
TypeToken<R> type,
Map<String, TypeAdapter<?>> labelToDelegate, Map<String, TypeAdapter<?>> labelToDelegate,
Map<Class<?>, TypeAdapter<?>> subtypeToDelegate) { Map<Class<?>, TypeAdapter<?>> subtypeToDelegate) {
for (Map.Entry<String, Class<?>> entry : labelToSubtype.entrySet()) { for (Map.Entry<String, Class<?>> entry : labelToSubtype.entrySet()) {
@ -243,7 +242,7 @@ public final class RuntimeTypeAdapterFactory<T> implements TypeAdapterFactory {
final Map<Class<?>, TypeAdapter<?>> subtypeToDelegate = final Map<Class<?>, TypeAdapter<?>> subtypeToDelegate =
new LinkedHashMap<>(labelToSubtype.size()); new LinkedHashMap<>(labelToSubtype.size());
initMaps(gson, type, labelToDelegate, subtypeToDelegate); initMaps(gson, labelToDelegate, subtypeToDelegate);
final RuntimeTypeAdapterFactory<T> that = this; final RuntimeTypeAdapterFactory<T> that = this;
return new TypeAdapter<R>() { return new TypeAdapter<R>() {

View file

@ -17,7 +17,6 @@ public class SecurityCamera extends Switchable implements BooleanTriggerable {
private boolean on; private boolean on;
@Column(name = "video", nullable = false) @Column(name = "video", nullable = false)
@NotNull
private String path; private String path;
public String getPath() { public String getPath() {