From 1ce036aea0bc3320e4b35e89c34f81e4f7f36e99 Mon Sep 17 00:00:00 2001 From: Yash Pal Date: Sat, 11 Jan 2025 18:01:26 +0530 Subject: [PATCH] Resolve spotbugs error --- src/main/java/jenkins/advancedqueue/sorter/SorterStrategy.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/jenkins/advancedqueue/sorter/SorterStrategy.java b/src/main/java/jenkins/advancedqueue/sorter/SorterStrategy.java index 9706e551..7b189795 100644 --- a/src/main/java/jenkins/advancedqueue/sorter/SorterStrategy.java +++ b/src/main/java/jenkins/advancedqueue/sorter/SorterStrategy.java @@ -24,6 +24,7 @@ package jenkins.advancedqueue.sorter; import edu.umd.cs.findbugs.annotations.CheckForNull; +import edu.umd.cs.findbugs.annotations.CheckReturnValue; import edu.umd.cs.findbugs.annotations.NonNull; import hudson.ExtensionList; import hudson.ExtensionPoint; @@ -66,6 +67,7 @@ public void onStartedItem(@NonNull LeftItem item, float weight) {} /** * Called when a {@link hudson.model.Item} leaves the queue and it is canceled. */ + @CheckReturnValue public void onCanceledItem(@NonNull LeftItem item) { if (item.isCancelled()) { ExtensionList all = all();