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:
Wouter Born
2020-11-04 13:57:24 +01:00
committed by GitHub
parent 1dccf67909
commit b423f93b1f
124 changed files with 315 additions and 387 deletions

View File

@@ -53,14 +53,14 @@ public class HVACHandler extends BaseThingHandler {
* speed, but the protocol's fan command (and matching binding command) use
* single-letter abbreviations.
*/
private static final Map<String, @Nullable String> FAN_NUM_TO_STR;
private static final Map<String, String> FAN_NUM_TO_STR;
/**
* The CoolMasterNet query command returns numbers 0-5 for operation modes,
* but these don't map to any mode you can set on the device, so we use this
* lookup table.
*/
private static final Map<String, @Nullable String> MODE_NUM_TO_STR;
private static final Map<String, String> MODE_NUM_TO_STR;
static {
FAN_NUM_TO_STR = new HashMap<>();