src/share/classes/sun/rmi/transport/ObjectTable.java

Print this page

        

@@ -35,11 +35,10 @@
 import java.util.HashMap;
 import java.util.Map;
 import sun.misc.GC;
 import sun.rmi.runtime.Log;
 import sun.rmi.runtime.NewThreadAction;
-import sun.security.action.GetLongAction;
 
 /**
  * Object table shared by all implementors of the Transport interface.
  * This table maps object ids to remote object targets in this address
  * space.

@@ -49,12 +48,12 @@
  */
 public final class ObjectTable {
 
     /** maximum interval between complete garbage collections of local heap */
     private final static long gcInterval =              // default 1 hour
-        AccessController.doPrivileged(
-            new GetLongAction("sun.rmi.dgc.server.gcInterval", 3600000));
+        AccessController.doPrivileged((PrivilegedAction<Long>) () ->
+            Long.getLong("sun.rmi.dgc.server.gcInterval", 3600000));
 
     /**
      * lock guarding objTable and implTable.
      * Holders MAY acquire a Target instance's lock or keepAliveLock.
      */