Adjustments after changing null-annotations for updating properties (#12221)

Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
J-N-K
2022-02-08 18:35:16 +01:00
committed by GitHub
parent a3448a57d3
commit 60f9f60faf
10 changed files with 16 additions and 10 deletions

View File

@@ -15,6 +15,7 @@ package org.openhab.binding.velux.internal.handler.utils;
import java.util.Map;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
import org.openhab.core.thing.Bridge;
import org.openhab.core.thing.ChannelUID;
import org.openhab.core.thing.binding.BaseBridgeHandler;
@@ -59,7 +60,7 @@ public abstract class ExtendedBaseBridgeHandler extends BaseBridgeHandler {
* @param properties properties map, that was updated and should be persisted
*/
@Override
public void updateProperties(Map<String, String> properties) {
public void updateProperties(@Nullable Map<String, String> properties) {
super.updateProperties(properties);
}

View File

@@ -15,6 +15,7 @@ package org.openhab.binding.velux.internal.handler.utils;
import java.util.Map;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
import org.openhab.core.thing.Thing;
import org.openhab.core.thing.binding.BaseThingHandler;
@@ -61,7 +62,7 @@ public abstract class ExtendedBaseThingHandler extends BaseThingHandler {
* @param properties properties map, that was updated and should be persisted
*/
@Override
public void updateProperties(Map<String, String> properties) {
public void updateProperties(@Nullable Map<String, String> properties) {
super.updateProperties(properties);
}
}