[infrastructure] move infered nullness warnings to error and update EEA (#8949)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
@@ -76,7 +76,7 @@ public class NeeoBrainApi implements AutoCloseable {
|
||||
throw resp.createException();
|
||||
}
|
||||
|
||||
return gson.fromJson(resp.getContent(), NeeoBrain.class);
|
||||
return Objects.requireNonNull(gson.fromJson(resp.getContent(), NeeoBrain.class));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,7 +97,7 @@ public class NeeoBrainApi implements AutoCloseable {
|
||||
throw resp.createException();
|
||||
}
|
||||
|
||||
return gson.fromJson(resp.getContent(), NeeoRoom.class);
|
||||
return Objects.requireNonNull(gson.fromJson(resp.getContent(), NeeoRoom.class));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -121,7 +121,7 @@ public class NeeoBrainApi implements AutoCloseable {
|
||||
throw resp.createException();
|
||||
}
|
||||
|
||||
return gson.fromJson(resp.getContent(), ExecuteResult.class);
|
||||
return Objects.requireNonNull(gson.fromJson(resp.getContent(), ExecuteResult.class));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -145,7 +145,7 @@ public class NeeoBrainApi implements AutoCloseable {
|
||||
throw resp.createException();
|
||||
}
|
||||
|
||||
return gson.fromJson(resp.getContent(), ExecuteResult.class);
|
||||
return Objects.requireNonNull(gson.fromJson(resp.getContent(), ExecuteResult.class));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -163,7 +163,7 @@ public class NeeoBrainApi implements AutoCloseable {
|
||||
throw resp.createException();
|
||||
}
|
||||
|
||||
return gson.fromJson(resp.getContent(), String[].class);
|
||||
return Objects.requireNonNull(gson.fromJson(resp.getContent(), String[].class));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -189,7 +189,7 @@ public class NeeoBrainApi implements AutoCloseable {
|
||||
throw resp.createException();
|
||||
}
|
||||
|
||||
return gson.fromJson(resp.getContent(), ExecuteResult.class);
|
||||
return Objects.requireNonNull(gson.fromJson(resp.getContent(), ExecuteResult.class));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -190,7 +190,7 @@ public class NeeoBrainHandler extends BaseBridgeHandler {
|
||||
public void post(String json) {
|
||||
triggerChannel(NeeoConstants.CHANNEL_BRAIN_FOWARDACTIONS, json);
|
||||
|
||||
final NeeoAction action = gson.fromJson(json, NeeoAction.class);
|
||||
final NeeoAction action = Objects.requireNonNull(gson.fromJson(json, NeeoAction.class));
|
||||
|
||||
for (final Thing child : getThing().getThings()) {
|
||||
final ThingHandler th = child.getHandler();
|
||||
|
||||
Reference in New Issue
Block a user