src/share/classes/sun/rmi/transport/proxy/HttpSendSocket.java
Print this page
@@ -24,10 +24,11 @@
*/
package sun.rmi.transport.proxy;
import java.io.*;
import java.net.*;
+import java.security.PrivilegedAction;
import sun.rmi.runtime.Log;
/**
* The HttpSendSocket class extends the java.net.Socket class
@@ -77,11 +78,11 @@
* Line separator string. This is the value of the line.separator
* property at the moment that the socket was created.
*/
private String lineSeparator =
java.security.AccessController.doPrivileged(
- new sun.security.action.GetPropertyAction("line.separator"));
+ (PrivilegedAction<String>) () -> System.getProperty("line.separator"));
/**
* Create a stream socket and connect it to the specified port on
* the specified host.
* @param host the host