mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-25 19:55:48 +01:00
Fix null analysis errors/warnings (#1626)
The changes in #1614 caused null analysis errors in CommunicationManager.createCallback and caused unnecessary null check warnings in ProfileCallbackImpl. Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
b5fd603eed
commit
02404b2fa7
@ -15,6 +15,7 @@ package org.openhab.core.thing.internal.profiles;
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.core.common.SafeCaller;
|
||||
import org.openhab.core.events.EventPublisher;
|
||||
import org.openhab.core.items.Item;
|
||||
@ -47,14 +48,14 @@ public class ProfileCallbackImpl implements ProfileCallback {
|
||||
|
||||
private final EventPublisher eventPublisher;
|
||||
private final ItemChannelLink link;
|
||||
private final Function<ThingUID, Thing> thingProvider;
|
||||
private final Function<String, Item> itemProvider;
|
||||
private final Function<ThingUID, @Nullable Thing> thingProvider;
|
||||
private final Function<String, @Nullable Item> itemProvider;
|
||||
private final SafeCaller safeCaller;
|
||||
private final ItemStateConverter itemStateConverter;
|
||||
|
||||
public ProfileCallbackImpl(EventPublisher eventPublisher, SafeCaller safeCaller,
|
||||
ItemStateConverter itemStateConverter, ItemChannelLink link, Function<ThingUID, Thing> thingProvider,
|
||||
Function<String, Item> itemProvider) {
|
||||
ItemStateConverter itemStateConverter, ItemChannelLink link,
|
||||
Function<ThingUID, @Nullable Thing> thingProvider, Function<String, @Nullable Item> itemProvider) {
|
||||
this.eventPublisher = eventPublisher;
|
||||
this.safeCaller = safeCaller;
|
||||
this.itemStateConverter = itemStateConverter;
|
||||
|
Loading…
Reference in New Issue
Block a user