null annotations (#13976)

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
lsiepel 2022-12-20 00:06:52 +01:00 committed by GitHub
parent 1519cb4b1c
commit 0b1eb2c03b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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();

View File

@ -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)) {