src/share/classes/sun/rmi/log/ReliableLog.java

Print this page

        

@@ -28,12 +28,10 @@
 import java.io.*;
 import java.lang.reflect.Constructor;
 import java.rmi.server.RMIClassLoader;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
-import sun.security.action.GetBooleanAction;
-import sun.security.action.GetPropertyAction;
 
 /**
  * This class is a simple implementation of a reliable Log.  The
  * client of a ReliableLog must provide a set of callbacks (via a
  * LogHandler) that enables a ReliableLog to read and write

@@ -139,11 +137,11 @@
                      boolean pad)
         throws IOException
     {
         super();
         this.Debug = AccessController.doPrivileged(
-            new GetBooleanAction("sun.rmi.log.debug")).booleanValue();
+            (PrivilegedAction<Boolean>) () -> Boolean.getBoolean("sun.rmi.log.debug"));
         dir = new File(dirPath);
         if (!(dir.exists() && dir.isDirectory())) {
             // create directory
             if (!dir.mkdir()) {
                 throw new IOException("could not create directory for log: " +

@@ -332,11 +330,11 @@
      **/
     private static Constructor<? extends LogFile>
         getLogClassConstructor() {
 
         String logClassName = AccessController.doPrivileged(
-            new GetPropertyAction("sun.rmi.log.class"));
+            (PrivilegedAction<String>) () -> System.getProperty("sun.rmi.log.class"));
         if (logClassName != null) {
             try {
                 ClassLoader loader =
                     AccessController.doPrivileged(
                         new PrivilegedAction<ClassLoader>() {