mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
null annotations (#13976)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
parent
1519cb4b1c
commit
0b1eb2c03b
@ -12,6 +12,7 @@
|
||||
*/
|
||||
package org.openhab.binding.bluetooth.blukii;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.binding.bluetooth.BluetoothBindingConstants;
|
||||
import org.openhab.core.thing.ThingTypeUID;
|
||||
|
||||
@ -21,6 +22,7 @@ import org.openhab.core.thing.ThingTypeUID;
|
||||
*
|
||||
* @author Kai Kreuzer - Initial contribution
|
||||
*/
|
||||
@NonNullByDefault
|
||||
public class BlukiiBindingConstants {
|
||||
|
||||
// List of all Thing Type UIDs
|
||||
|
@ -14,7 +14,6 @@ package org.openhab.binding.bluetooth.blukii.handler;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.binding.bluetooth.BeaconBluetoothHandler;
|
||||
import org.openhab.binding.bluetooth.BluetoothDeviceListener;
|
||||
import org.openhab.binding.bluetooth.blukii.BlukiiBindingConstants;
|
||||
import org.openhab.binding.bluetooth.blukii.internal.data.BlukiiData;
|
||||
import org.openhab.binding.bluetooth.blukii.internal.data.BlukiiDataDecoder;
|
||||
@ -34,7 +33,7 @@ import org.openhab.core.thing.Thing;
|
||||
* @author Markus Rathgeb - Split data (decoding and types) and handler
|
||||
*/
|
||||
@NonNullByDefault
|
||||
public class BlukiiHandler extends BeaconBluetoothHandler implements BluetoothDeviceListener {
|
||||
public class BlukiiHandler extends BeaconBluetoothHandler {
|
||||
|
||||
private final BlukiiDataDecoder decoder = new BlukiiDataDecoder();
|
||||
|
||||
|
@ -15,6 +15,8 @@ package org.openhab.binding.bluetooth.blukii.internal;
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.binding.bluetooth.blukii.BlukiiBindingConstants;
|
||||
import org.openhab.binding.bluetooth.blukii.handler.BlukiiHandler;
|
||||
import org.openhab.core.thing.Thing;
|
||||
@ -29,6 +31,7 @@ import org.osgi.service.component.annotations.Component;
|
||||
*
|
||||
* @author Kai Kreuzer - Initial contribution
|
||||
*/
|
||||
@NonNullByDefault
|
||||
@Component(service = ThingHandlerFactory.class, configurationPid = "binding.blukii")
|
||||
public class BlukiiHandlerFactory extends BaseThingHandlerFactory {
|
||||
|
||||
@ -41,7 +44,7 @@ public class BlukiiHandlerFactory extends BaseThingHandlerFactory {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ThingHandler createHandler(Thing thing) {
|
||||
protected @Nullable ThingHandler createHandler(Thing thing) {
|
||||
ThingTypeUID thingTypeUID = thing.getThingTypeUID();
|
||||
|
||||
if (thingTypeUID.equals(BlukiiBindingConstants.THING_TYPE_BEACON)) {
|
||||
|
Loading…
Reference in New Issue
Block a user