jdk/src/share/classes/sun/rmi/transport/proxy/HttpSendSocket.java
changeset 23333 b0af2c7c8c91
parent 14342 8435a30053c1
equal deleted inserted replaced
23332:c36c4773fe96 23333:b0af2c7c8c91
    24  */
    24  */
    25 package sun.rmi.transport.proxy;
    25 package sun.rmi.transport.proxy;
    26 
    26 
    27 import java.io.*;
    27 import java.io.*;
    28 import java.net.*;
    28 import java.net.*;
       
    29 import java.security.PrivilegedAction;
    29 
    30 
    30 import sun.rmi.runtime.Log;
    31 import sun.rmi.runtime.Log;
    31 
    32 
    32 /**
    33 /**
    33  * The HttpSendSocket class extends the java.net.Socket class
    34  * The HttpSendSocket class extends the java.net.Socket class
    77      * Line separator string.  This is the value of the line.separator
    78      * Line separator string.  This is the value of the line.separator
    78      * property at the moment that the socket was created.
    79      * property at the moment that the socket was created.
    79      */
    80      */
    80     private String lineSeparator =
    81     private String lineSeparator =
    81         java.security.AccessController.doPrivileged(
    82         java.security.AccessController.doPrivileged(
    82             new sun.security.action.GetPropertyAction("line.separator"));
    83             (PrivilegedAction<String>) () -> System.getProperty("line.separator"));
    83 
    84 
    84     /**
    85     /**
    85      * Create a stream socket and connect it to the specified port on
    86      * Create a stream socket and connect it to the specified port on
    86      * the specified host.
    87      * the specified host.
    87      * @param host the host
    88      * @param host the host