[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:
@@ -36,6 +36,7 @@ package org.openhab.binding.lgwebos.internal.handler.command;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.binding.lgwebos.internal.handler.core.ResponseListener;
|
||||
|
||||
import com.google.gson.JsonElement;
|
||||
@@ -57,11 +58,11 @@ public class ServiceCommand<T> {
|
||||
protected Type type;
|
||||
protected JsonObject payload;
|
||||
protected String target;
|
||||
protected Function<JsonObject, T> converter;
|
||||
protected Function<JsonObject, @Nullable T> converter;
|
||||
|
||||
ResponseListener<T> responseListener;
|
||||
|
||||
public ServiceCommand(String targetURL, JsonObject payload, Function<JsonObject, T> converter,
|
||||
public ServiceCommand(String targetURL, JsonObject payload, Function<JsonObject, @Nullable T> converter,
|
||||
ResponseListener<T> listener) {
|
||||
this.target = targetURL;
|
||||
this.payload = payload;
|
||||
|
||||
@@ -35,6 +35,7 @@ package org.openhab.binding.lgwebos.internal.handler.command;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.binding.lgwebos.internal.handler.core.ResponseListener;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
@@ -48,7 +49,7 @@ import com.google.gson.JsonObject;
|
||||
*/
|
||||
public class ServiceSubscription<T> extends ServiceCommand<T> {
|
||||
|
||||
public ServiceSubscription(String uri, JsonObject payload, Function<JsonObject, T> converter,
|
||||
public ServiceSubscription(String uri, JsonObject payload, Function<JsonObject, @Nullable T> converter,
|
||||
ResponseListener<T> listener) {
|
||||
super(uri, payload, converter, listener);
|
||||
type = Type.subscribe;
|
||||
|
||||
Reference in New Issue
Block a user