[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:
J-N-K
2020-11-12 21:07:11 +01:00
committed by GitHub
parent 0856a0b3f2
commit ba4c96d99d
155 changed files with 644 additions and 632 deletions

View File

@@ -12,7 +12,6 @@
*/
package org.openhab.binding.bsblan.internal;
import java.util.HashSet;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNullByDefault;
@@ -42,15 +41,8 @@ public class BsbLanBindingConstants {
public static final String PARAMETER_CHANNEL_DESCRIPTION = "description";
public static final String PARAMETER_CHANNEL_DATATYPE = "datatype";
public static final Set<String> WRITEABLE_CHANNELS = new HashSet<String>() {
private static final long serialVersionUID = 1L;
{
add(PARAMETER_CHANNEL_NUMBER_VALUE);
add(PARAMETER_CHANNEL_STRING_VALUE);
add(PARAMETER_CHANNEL_SWITCH_VALUE);
}
};
public static final Set<String> WRITEABLE_CHANNELS = Set.of(PARAMETER_CHANNEL_NUMBER_VALUE,
PARAMETER_CHANNEL_STRING_VALUE, PARAMETER_CHANNEL_SWITCH_VALUE);
public static final int MIN_REFRESH_INTERVAL = 5;
public static final int DEFAULT_REFRESH_INTERVAL = 60;

View File

@@ -14,7 +14,6 @@ package org.openhab.binding.bsblan.internal;
import static org.openhab.binding.bsblan.internal.BsbLanBindingConstants.*;
import java.util.HashSet;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNullByDefault;
@@ -39,14 +38,7 @@ import org.osgi.service.component.annotations.Component;
@Component(service = ThingHandlerFactory.class, configurationPid = "binding.bsblan")
public class BsbLanHandlerFactory extends BaseThingHandlerFactory {
private static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = new HashSet<ThingTypeUID>() {
private static final long serialVersionUID = 1L;
{
add(THING_TYPE_PARAMETER);
add(THING_TYPE_BRIDGE);
}
};
private static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_PARAMETER, THING_TYPE_BRIDGE);
@Override
public boolean supportsThingType(ThingTypeUID thingTypeUID) {