diff --git a/core/src/main/java/hudson/triggers/SafeTimerTask.java b/core/src/main/java/hudson/triggers/SafeTimerTask.java index 49524fbec0..e47dfc61e6 100644 --- a/core/src/main/java/hudson/triggers/SafeTimerTask.java +++ b/core/src/main/java/hudson/triggers/SafeTimerTask.java @@ -23,27 +23,24 @@ */ package hudson.triggers; +import hudson.model.AperiodicWork; +import hudson.model.PeriodicWork; +import hudson.security.ACL; +import java.util.TimerTask; +import java.util.logging.Level; +import java.util.logging.Logger; +import jenkins.util.Timer; import org.acegisecurity.context.SecurityContext; import org.acegisecurity.context.SecurityContextHolder; -import java.util.Timer; -import java.util.TimerTask; -import java.util.logging.Logger; -import java.util.logging.Level; - -import hudson.security.ACL; - /** - * {@link Timer} wrapper so that a fatal error in {@link TimerTask} - * won't terminate the timer. + * Wrapper so that a fatal error in {@link TimerTask} will not terminate the timer. * *

- * {@link Trigger#timer} is a shared timer instance that can be used inside Hudson to - * schedule a recurring work. - * + * {@link Timer#get} is a shared timer instance that can be used inside Jenkins to schedule recurring work. + * But the usual usage is automatic via {@link PeriodicWork} or {@link AperiodicWork}. * @author Kohsuke Kawaguchi * @since 1.124 - * @see Trigger#timer */ public abstract class SafeTimerTask extends TimerTask { public final void run() {