mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
Using JDK-5-specific constructor.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2865 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
170c306aa2
commit
b9f00f251d
1 file changed
+1
-1
@@ -158,7 +158,7 @@ public abstract class Trigger<J extends Item> implements Describable<Trigger<?>>
|
||||
* This timer is available for all the components inside Hudson to schedule
|
||||
* some work.
|
||||
*/
|
||||
public static final Timer timer = new Timer(); // "Hudson cron thread"); -- this is a new constructor since 1.5
|
||||
public static final Timer timer = new Timer("Hudson cron thread");
|
||||
|
||||
public static void init() {
|
||||
timer.scheduleAtFixedRate(new Cron(), 1000*60, 1000*60/*every minute*/);
|
||||
|
||||
Reference in new issue
Block a user