< prev index next >

src/java.base/share/classes/java/net/SocketImpl.java

Print this page

        

@@ -278,19 +278,27 @@
      */
     protected int getLocalPort() {
         return localport;
     }
 
-    void setSocket(Socket soc) {
+    /**
+     * Set the Socket object
+     * @param soc the socket
+     */
+    protected void setSocket(Socket soc) {
         this.socket = soc;
     }
 
     Socket getSocket() {
         return socket;
     }
 
-    void setServerSocket(ServerSocket soc) {
+    /**
+     * Set the ServerSocket object
+     * @param soc the socket
+     */
+    protected void setServerSocket(ServerSocket soc) {
         this.serverSocket = soc;
     }
 
     ServerSocket getServerSocket() {
         return serverSocket;
< prev index next >