diff --git a/src/main/java/jenkins/model/JenkinsAdaptor.java b/src/main/java/jenkins/model/JenkinsAdaptor.java index efe14b9cb..48c5bca77 100644 --- a/src/main/java/jenkins/model/JenkinsAdaptor.java +++ b/src/main/java/jenkins/model/JenkinsAdaptor.java @@ -1,8 +1,9 @@ package jenkins.model; /** - * Access the package protected quiet period + * @deprecated use {@link Jenkins#setQuietPeriod} */ +@Deprecated public class JenkinsAdaptor { public static void setQuietPeriod(Jenkins jenkins, int quietPeriod) { jenkins.quietPeriod = quietPeriod; diff --git a/src/main/java/org/jvnet/hudson/test/JenkinsRule.java b/src/main/java/org/jvnet/hudson/test/JenkinsRule.java index 7a55f4f5b..5233f0869 100644 --- a/src/main/java/org/jvnet/hudson/test/JenkinsRule.java +++ b/src/main/java/org/jvnet/hudson/test/JenkinsRule.java @@ -1888,6 +1888,10 @@ public void assertEqualBeans(Object lhs, Object rhs, String properties) throws I } } + /** + * @deprecated use {@link Jenkins#setQuietPeriod} + */ + @Deprecated public void setQuietPeriod(int qp) { JenkinsAdaptor.setQuietPeriod(jenkins, qp); }