From b0802fd9fb75a57144d03875eb26bbf64135402b Mon Sep 17 00:00:00 2001 From: Kezhi Xiong Date: Wed, 2 Sep 2020 17:13:20 +0800 Subject: [PATCH] Remove the old "fromRun" method which does not take listener as parameter --- .../plugins/checks/api/ChecksPublisherFactory.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/io/jenkins/plugins/checks/api/ChecksPublisherFactory.java b/src/main/java/io/jenkins/plugins/checks/api/ChecksPublisherFactory.java index b79e7cae..faeaf79e 100644 --- a/src/main/java/io/jenkins/plugins/checks/api/ChecksPublisherFactory.java +++ b/src/main/java/io/jenkins/plugins/checks/api/ChecksPublisherFactory.java @@ -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; @@ -60,18 +59,6 @@ protected Optional 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. *