[infrastructure] add external null-annotations (#8848)

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
J-N-K
2020-10-31 00:29:03 +01:00
committed by GitHub
parent 47d05055db
commit bd664ff0c8
162 changed files with 933 additions and 575 deletions

View File

@@ -13,6 +13,7 @@
package org.openhab.binding.foobot.internal;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
/**
* Exception thrown when problems occur with obtaining data for the foobot api.
@@ -24,7 +25,7 @@ public class FoobotApiException extends Exception {
private static final long serialVersionUID = 1L;
public FoobotApiException(final int status, final String message) {
public FoobotApiException(final int status, final @Nullable String message) {
super(String.format("%s (code: %s)", message, status));
}
}

View File

@@ -15,10 +15,7 @@ package org.openhab.binding.foobot.internal.handler;
import static org.openhab.binding.foobot.internal.FoobotBindingConstants.*;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.*;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;