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 1ce036a commit f3e735a
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public void onCanceledItem(@NonNull LeftItem item) {
ExtensionList<SorterStrategy> all = all();
for (SorterStrategy prioritySorterStrategy : all) {

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

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 74 is only partially covered, one branch is missing
SorterStrategyDescriptor descriptor = prioritySorterStrategy.getDescriptor();

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

View check run for this annotation

ci.jenkins.io / SpotBugs

DLS_DEAD_LOCAL_STORE

LOW: Dead store to $L5 in jenkins.advancedqueue.sorter.SorterStrategy.onCanceledItem(Queue$LeftItem)
Raw output
<p> This instruction assigns a value to a local variable, but the value is not read or used in any subsequent instruction. Often, this indicates an error, because the value computed is never used. </p> <p> Note that Sun's javac compiler often generates dead stores for final local variables. Because SpotBugs is a bytecode-based tool, there is no easy way to eliminate these false positives. </p>
descriptor.getId();
}

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

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 75-76 are not covered by tests
}
}
Expand Down

0 comments on commit f3e735a

Please sign in to comment.