Skip to content

Commit

Permalink
SpotBugs still
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Feb 19, 2025
1 parent 027f924 commit 86a2bc9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

package org.jvnet.hudson.test;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.AbortException;
import hudson.EnvVars;
import hudson.Extension;
Expand Down Expand Up @@ -64,7 +65,7 @@ public SimpleCommandLauncher(String cmd) {
}

@Override
public synchronized void launch(SlaveComputer computer, final TaskListener listener) {
public void launch(SlaveComputer computer, final TaskListener listener) {
try {
Slave node = computer.getNode();
if (node == null) {
Expand All @@ -86,6 +87,7 @@ public synchronized void launch(SlaveComputer computer, final TaskListener liste
}
}

@SuppressFBWarnings(value = "IS2_INCONSISTENT_SYNC", justification = "test code, close enough")
@Override
public synchronized void afterDisconnect(SlaveComputer computer, TaskListener listener) {
if (proc != null) {
Expand Down

0 comments on commit 86a2bc9

Please sign in to comment.