Skip to content

Resolve spotbugs error

ci.jenkins.io / SpotBugs failed Jan 11, 2025

1 new issue

Total New Outstanding Fixed Trend
1 1 0 0 👎

Reference build: Plugins » priority-sorter-plugin » master #421

Details

Severity distribution of new issues

Error Warning High Warning Normal Warning Low
0 0 0 1

Annotations

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

See this annotation in the file changed.

@ci-jenkins-io 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>