Skip to content

Commit 1ce036a

Browse files
committed
Resolve spotbugs error
1 parent 54ca69c commit 1ce036a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/jenkins/advancedqueue/sorter/SorterStrategy.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
package jenkins.advancedqueue.sorter;
2525

2626
import edu.umd.cs.findbugs.annotations.CheckForNull;
27+
import edu.umd.cs.findbugs.annotations.CheckReturnValue;
2728
import edu.umd.cs.findbugs.annotations.NonNull;
2829
import hudson.ExtensionList;
2930
import hudson.ExtensionPoint;
@@ -66,6 +67,7 @@ public void onStartedItem(@NonNull LeftItem item, float weight) {}
6667
/**
6768
* Called when a {@link hudson.model.Item} leaves the queue and it is canceled.
6869
*/
70+
@CheckReturnValue
6971
public void onCanceledItem(@NonNull LeftItem item) {
7072
if (item.isCancelled()) {
7173
ExtensionList<SorterStrategy> all = all();

0 commit comments

Comments
 (0)