Skip to content

Commit ba885d0

Browse files
authored
Merge pull request #123 from basil/spotbugs
Remove unnecessary SpotBugs exclusions
2 parents e552bfd + a7cb241 commit ba885d0

3 files changed

Lines changed: 0 additions & 9 deletions

File tree

src/main/java/hudson/plugins/im/bot/SnackCommand.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package hudson.plugins.im.bot;
22

3-
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4-
53
import hudson.Extension;
64
import hudson.plugins.im.Sender;
75
import hudson.plugins.im.tools.MessageHelper;
@@ -42,7 +40,6 @@ public Collection<String> getCommandNames() {
4240
// a single Random object than to keep allocating new ones
4341
private static final Random ran = new Random();
4442

45-
@SuppressFBWarnings("DMI_RANDOM_USED_ONLY_ONCE") // See also https://github.com/spotbugs/spotbugs/issues/1539
4643
@Override
4744
protected String getReply(Bot bot, Sender sender, String[] args) {
4845
String snack = null;

src/main/java/hudson/plugins/im/build_notify/PrintFailingTestsBuildToChatNotifier.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package hudson.plugins.im.build_notify;
22

3-
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4-
53
import hudson.Extension;
64
import hudson.model.Run;
75
import hudson.model.TaskListener;
@@ -73,8 +71,6 @@ private CharSequence getFailedTestsReport(Run<?, ?> build) {
7371
List<CaseResult> failedTests = testResultAction.getFailedTests();
7472

7573
Collections.sort(failedTests, new Comparator<CaseResult>() {
76-
@SuppressFBWarnings(value = "SIC_INNER_SHOULD_BE_STATIC_ANON",
77-
justification = "Maybe fix this inefficiency later, does not seem fatal")
7874
@Override
7975
public int compare(CaseResult o1, CaseResult o2) {
8076
if (o1.getAge() < o2.getAge()) {

src/main/java/hudson/plugins/im/tools/MessageHelper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package hudson.plugins.im.tools;
22

3-
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4-
53
import hudson.Util;
64
import hudson.model.Hudson;
75
import hudson.model.Run;

0 commit comments

Comments
 (0)