[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:
@@ -14,6 +14,7 @@ package org.openhab.binding.amazonechocontrol.internal.channelhandler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.Objects;
|
||||
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
@@ -91,7 +92,7 @@ public class ChannelHandlerAnnouncement extends ChannelHandler {
|
||||
body = e.getLocalizedMessage();
|
||||
}
|
||||
}
|
||||
thingHandler.startAnnouncment(device, speak, body, title, volume);
|
||||
thingHandler.startAnnouncment(device, speak, Objects.requireNonNullElse(body, ""), title, volume);
|
||||
}
|
||||
refreshChannel();
|
||||
}
|
||||
|
||||
@@ -673,7 +673,7 @@ public class AccountHandler extends BaseBridgeHandler implements IWebSocketComma
|
||||
public void setEnabledFlashBriefingsJson(String flashBriefingJson) {
|
||||
Connection currentConnection = connection;
|
||||
JsonFeed[] feeds = gson.fromJson(flashBriefingJson, JsonFeed[].class);
|
||||
if (currentConnection != null) {
|
||||
if (currentConnection != null && feeds != null) {
|
||||
try {
|
||||
currentConnection.setEnabledFlashBriefings(feeds);
|
||||
} catch (IOException | URISyntaxException e) {
|
||||
|
||||
@@ -25,7 +25,8 @@ import com.google.gson.annotations.SerializedName;
|
||||
@NonNullByDefault
|
||||
public class JsonRegisterAppRequest {
|
||||
|
||||
public JsonRegisterAppRequest(String serial, String accessToken, String frc, JsonWebSiteCookie[] webSiteCookies) {
|
||||
public JsonRegisterAppRequest(String serial, @Nullable String accessToken, String frc,
|
||||
JsonWebSiteCookie[] webSiteCookies) {
|
||||
registrationData.deviceSerial = serial;
|
||||
authData.accessToken = accessToken;
|
||||
userContextMap.frc = frc;
|
||||
|
||||
Reference in New Issue
Block a user