Skip to content

Commit

Permalink
Resolve spotbugs error
Browse files Browse the repository at this point in the history
  • Loading branch information
yashpal2104 committed Jan 11, 2025
1 parent 54ca69c commit 1ce036a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()) {

Check warning on line 72 in src/main/java/jenkins/advancedqueue/sorter/SorterStrategy.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 72 is only partially covered, one branch is missing
ExtensionList<SorterStrategy> all = all();
Expand Down

0 comments on commit 1ce036a

Please sign in to comment.