Merge branch 'sonar-fix' into 'dev'

Even another batch of sonar fixes

See merge request sa4-2020/the-sanmarinoes/backend!134
This commit is contained in:
Claudio Maggioni 2020-05-10 20:50:22 +02:00
commit d0fa87e9c3
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(
Gson gson,
TypeToken<R> type,
Map<String, TypeAdapter<?>> labelToDelegate,
Map<Class<?>, TypeAdapter<?>> subtypeToDelegate) {
for (Map.Entry<String, Class<?>> entry : labelToSubtype.entrySet()) {
@ -243,7 +242,7 @@ public final class RuntimeTypeAdapterFactory<T> implements TypeAdapterFactory {
final Map<Class<?>, TypeAdapter<?>> subtypeToDelegate =
new LinkedHashMap<>(labelToSubtype.size());
initMaps(gson, type, labelToDelegate, subtypeToDelegate);
initMaps(gson, labelToDelegate, subtypeToDelegate);
final RuntimeTypeAdapterFactory<T> that = this;
return new TypeAdapter<R>() {

View file

@ -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() {