jdk/src/share/classes/javax/management/monitor/Monitor.java
changeset 1446 605e30465515
parent 715 f16baef3a20e
child 1581 81388748f694
--- a/jdk/src/share/classes/javax/management/monitor/Monitor.java	Mon Oct 06 09:17:35 2008 -0700
+++ b/jdk/src/share/classes/javax/management/monitor/Monitor.java	Wed Oct 08 18:38:25 2008 +0200
@@ -181,7 +181,7 @@
     /**
      * Executor Service.
      */
-    private static final ExecutorService executor;
+    private static final ThreadPoolExecutor executor;
     static {
         final String maximumPoolSizeSysProp = "jmx.x.monitor.maximum.pool.size";
         final String maximumPoolSizeStr = AccessController.doPrivileged(
@@ -218,7 +218,7 @@
                 TimeUnit.SECONDS,
                 new LinkedBlockingQueue<Runnable>(),
                 new DaemonThreadFactory("Executor"));
-        ((ThreadPoolExecutor)executor).allowCoreThreadTimeOut(true);
+        executor.allowCoreThreadTimeOut(true);
     }
 
     /**