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:
jglick committed 2007-04-04 15:54:21 +00:00
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*/);