Skip to content

Commit

Permalink
Merge pull request #25 from jenkinsci/remove-old-api
Browse files Browse the repository at this point in the history
Remove the old "fromRun" method which does not take listener as parameter
  • Loading branch information
XiongKezhi authored Sep 3, 2020
2 parents cebddb9 + b0802fd commit 8abdf81
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.Optional;

import edu.hm.hafner.util.VisibleForTesting;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.model.Job;
import hudson.model.Run;
import hudson.model.TaskListener;
Expand Down Expand Up @@ -60,18 +59,6 @@ protected Optional<ChecksPublisher> createPublisher(final Job<?, ?> job, final T
return Optional.empty();
}

/**
* Returns a suitable publisher for the run.
*
* @param run
* a Jenkins run
* @return a publisher suitable for the job
*/
@SuppressFBWarnings(value = "NP_NONNULL_PARAM_VIOLATION", justification = "restore to 0.1.0 version api")
public static ChecksPublisher fromRun(final Run<?, ?> run) {
return fromRun(run, null, new JenkinsFacade());
}

/**
* Returns a suitable publisher for the run.
*
Expand Down

0 comments on commit 8abdf81

Please sign in to comment.