Skip to content

Commit

Permalink
Suppress future spotbugs warning for equals test (jenkinsci#350)
Browse files Browse the repository at this point in the history
Floating point equality test in this case is reasonable since it is
being used in a compareTo method.
  • Loading branch information
MarkEWaite authored May 9, 2024
1 parent e45a7a6 commit cf8e254
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/spotbugs/excludesFilter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
<Class name="jenkins.advancedqueue.RunExclusiveThrottler$RunExclusiveRunListener"/>
<Method name="onStarted"/>
</Match>
<Match>
<!-- valid use of equals for compareTo -->
<Bug pattern="FE_FLOATING_POINT_EQUALITY"/>
<Class name="jenkins.advancedqueue.sorter.ItemInfo"/>
<Method name="compareTo"/>
</Match>

<!--
Here lies technical debt. Exclusions in this section have not yet
Expand Down

0 comments on commit cf8e254

Please sign in to comment.