diff --git a/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/internal/loader/ScriptFileReference.java b/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/internal/loader/ScriptFileReference.java index 85bd4ce5d..5d877fc67 100644 --- a/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/internal/loader/ScriptFileReference.java +++ b/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/internal/loader/ScriptFileReference.java @@ -24,7 +24,6 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; import org.eclipse.jdt.annotation.NonNullByDefault; -import org.jetbrains.annotations.NotNull; import org.openhab.core.service.StartLevelService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -96,7 +95,7 @@ public class ScriptFileReference implements Comparable { } @Override - public int compareTo(@NotNull ScriptFileReference other) { + public int compareTo(ScriptFileReference other) { try { Path path1 = Paths.get(scriptFileURL.toURI()); String name1 = path1.getFileName().toString(); diff --git a/bundles/org.openhab.core.automation.module.script.rulesupport/src/test/java/org/openhab/core/automation/module/script/rulesupport/internal/loader/DelegatingScheduledExecutorService.java b/bundles/org.openhab.core.automation.module.script.rulesupport/src/test/java/org/openhab/core/automation/module/script/rulesupport/internal/loader/DelegatingScheduledExecutorService.java index bb48b9970..2ab3111ae 100644 --- a/bundles/org.openhab.core.automation.module.script.rulesupport/src/test/java/org/openhab/core/automation/module/script/rulesupport/internal/loader/DelegatingScheduledExecutorService.java +++ b/bundles/org.openhab.core.automation.module.script.rulesupport/src/test/java/org/openhab/core/automation/module/script/rulesupport/internal/loader/DelegatingScheduledExecutorService.java @@ -16,8 +16,6 @@ import java.util.Collection; import java.util.List; import java.util.concurrent.*; -import org.jetbrains.annotations.NotNull; - /** * Implementation of {@link ScheduledExecutorService} which simply delegates to the instance supplied. * @@ -30,29 +28,23 @@ public class DelegatingScheduledExecutorService implements ScheduledExecutorServ this.delegate = delegate; } - @NotNull @Override - public ScheduledFuture schedule(@NotNull Runnable command, long delay, @NotNull TimeUnit unit) { + public ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit) { return delegate.schedule(command, delay, unit); } - @NotNull @Override - public ScheduledFuture schedule(@NotNull Callable callable, long delay, @NotNull TimeUnit unit) { + public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) { return delegate.schedule(callable, delay, unit); } - @NotNull @Override - public ScheduledFuture scheduleAtFixedRate(@NotNull Runnable command, long initialDelay, long period, - @NotNull TimeUnit unit) { + public ScheduledFuture scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) { return delegate.scheduleAtFixedRate(command, initialDelay, period, unit); } - @NotNull @Override - public ScheduledFuture scheduleWithFixedDelay(@NotNull Runnable command, long initialDelay, long delay, - @NotNull TimeUnit unit) { + public ScheduledFuture scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) { return delegate.scheduleWithFixedDelay(command, initialDelay, delay, unit); } @@ -61,7 +53,6 @@ public class DelegatingScheduledExecutorService implements ScheduledExecutorServ delegate.shutdown(); } - @NotNull @Override public List shutdownNow() { return delegate.shutdownNow(); @@ -78,56 +69,49 @@ public class DelegatingScheduledExecutorService implements ScheduledExecutorServ } @Override - public boolean awaitTermination(long timeout, @NotNull TimeUnit unit) throws InterruptedException { + public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { return delegate.awaitTermination(timeout, unit); } - @NotNull @Override - public Future submit(@NotNull Callable task) { + public Future submit(Callable task) { return delegate.submit(task); } - @NotNull @Override - public Future submit(@NotNull Runnable task, T result) { + public Future submit(Runnable task, T result) { return delegate.submit(task, result); } - @NotNull @Override - public Future submit(@NotNull Runnable task) { + public Future submit(Runnable task) { return delegate.submit(task); } - @NotNull @Override - public List> invokeAll(@NotNull Collection> tasks) throws InterruptedException { + public List> invokeAll(Collection> tasks) throws InterruptedException { return delegate.invokeAll(tasks); } - @NotNull @Override - public List> invokeAll(@NotNull Collection> tasks, long timeout, - @NotNull TimeUnit unit) throws InterruptedException { + public List> invokeAll(Collection> tasks, long timeout, TimeUnit unit) + throws InterruptedException { return delegate.invokeAll(tasks, timeout, unit); } - @NotNull @Override - public T invokeAny(@NotNull Collection> tasks) - throws InterruptedException, ExecutionException { + public T invokeAny(Collection> tasks) throws InterruptedException, ExecutionException { return delegate.invokeAny(tasks); } @Override - public T invokeAny(@NotNull Collection> tasks, long timeout, @NotNull TimeUnit unit) + public T invokeAny(Collection> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { return delegate.invokeAny(tasks, timeout, unit); } @Override - public void execute(@NotNull Runnable command) { + public void execute(Runnable command) { delegate.execute(command); } }