Remove Map null annotation workarounds (#8916)
These workarounds to prevent false positives can be removed now the EEAs allow for proper null analysis. Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -57,8 +57,8 @@ public class TACmiHandler extends BaseThingHandler {
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(TACmiHandler.class);
|
||||
|
||||
private final Map<@Nullable PodIdentifier, @Nullable PodData> podDatas = new HashMap<>();
|
||||
private final Map<@Nullable ChannelUID, @Nullable TACmiChannelConfiguration> channelConfigByUID = new HashMap<>();
|
||||
private final Map<PodIdentifier, PodData> podDatas = new HashMap<>();
|
||||
private final Map<ChannelUID, TACmiChannelConfiguration> channelConfigByUID = new HashMap<>();
|
||||
|
||||
private @Nullable TACmiCoEBridgeHandler bridge;
|
||||
private long lastMessageRecvTS; // last received message timestamp
|
||||
@@ -368,7 +368,7 @@ public class TACmiHandler extends BaseThingHandler {
|
||||
"No update from C.M.I. for 15 min");
|
||||
}
|
||||
for (final PodData pd : this.podDatas.values()) {
|
||||
if (pd == null || !(pd instanceof PodDataOutgoing)) {
|
||||
if (!(pd instanceof PodDataOutgoing)) {
|
||||
continue;
|
||||
}
|
||||
PodDataOutgoing podDataOutgoing = (PodDataOutgoing) pd;
|
||||
|
||||
@@ -88,11 +88,11 @@ public class ApiPageParser extends AbstractSimpleMarkupHandler {
|
||||
private @Nullable String address;
|
||||
private @Nullable StringBuilder value;
|
||||
private ButtonValue buttonValue = ButtonValue.UNKNOWN;
|
||||
private Map<String, @Nullable ApiPageEntry> entries;
|
||||
private Map<String, ApiPageEntry> entries;
|
||||
private Set<String> seenNames = new HashSet<>();
|
||||
private List<Channel> channels = new ArrayList<>();
|
||||
|
||||
public ApiPageParser(TACmiSchemaHandler taCmiSchemaHandler, Map<String, @Nullable ApiPageEntry> entries,
|
||||
public ApiPageParser(TACmiSchemaHandler taCmiSchemaHandler, Map<String, ApiPageEntry> entries,
|
||||
TACmiChannelTypeProvider channelTypeProvider) {
|
||||
super();
|
||||
this.taCmiSchemaHandler = taCmiSchemaHandler;
|
||||
|
||||
@@ -66,7 +66,7 @@ public class TACmiSchemaHandler extends BaseThingHandler {
|
||||
|
||||
private final HttpClient httpClient;
|
||||
private final TACmiChannelTypeProvider channelTypeProvider;
|
||||
private final Map<String, @Nullable ApiPageEntry> entries = new HashMap<>();
|
||||
private final Map<String, ApiPageEntry> entries = new HashMap<>();
|
||||
private boolean online;
|
||||
private @Nullable String serverBase;
|
||||
private @Nullable URI schemaApiPage;
|
||||
|
||||
Reference in New Issue
Block a user