提交 b9f00f25 编写于 作者: J jglick

Using JDK-5-specific constructor.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2865 71c3de6d-444a-0410-be80-ed276b4c234a
上级 170c306a
......@@ -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*/);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册