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:
commit
d0fa87e9c3
2 changed files with 1 additions and 3 deletions
|
@ -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>() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue