harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r726554 - in /harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net: DefaultServerSocketFactory.java DefaultSocketFactory.java ServerSocketFactory.java SocketFactory.java
Date Sun, 14 Dec 2008 22:07:46 GMT
Author: ndbeyer
Date: Sun Dec 14 14:07:46 2008
New Revision: 726554

URL: http://svn.apache.org/viewvc?rev=726554&view=rev
Log:
remove unnecessary comments and format

Modified:
    harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/DefaultServerSocketFactory.java
    harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/DefaultSocketFactory.java
    harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ServerSocketFactory.java
    harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/SocketFactory.java

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/DefaultServerSocketFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/DefaultServerSocketFactory.java?rev=726554&r1=726553&r2=726554&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/DefaultServerSocketFactory.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/DefaultServerSocketFactory.java
Sun Dec 14 14:07:46 2008
@@ -27,10 +27,13 @@
 import java.net.ServerSocket;
 
 /**
- * Default implementation of javax.net.ServerSocketFactory
- * 
+ * Default implementation of {@link javax.net.ServerSocketFactory}
  */
-class DefaultServerSocketFactory extends ServerSocketFactory {
+final class DefaultServerSocketFactory extends ServerSocketFactory {
+
+    DefaultServerSocketFactory() {
+        super();
+    }
 
     @Override
     public ServerSocket createServerSocket(int port) throws IOException {

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/DefaultSocketFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/DefaultSocketFactory.java?rev=726554&r1=726553&r2=726554&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/DefaultSocketFactory.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/DefaultSocketFactory.java
Sun Dec 14 14:07:46 2008
@@ -28,10 +28,13 @@
 import java.net.UnknownHostException;
 
 /**
- * Default implementation of javax.net.SocketFactory
- * 
+ * Default implementation of {@link javax.net.SocketFactory}
  */
-class DefaultSocketFactory extends SocketFactory {
+final class DefaultSocketFactory extends SocketFactory {
+
+    DefaultSocketFactory() {
+        super();
+    }
 
     @Override
     public Socket createSocket() throws IOException {

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ServerSocketFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ServerSocketFactory.java?rev=726554&r1=726553&r2=726554&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ServerSocketFactory.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ServerSocketFactory.java
Sun Dec 14 14:07:46 2008
@@ -27,35 +27,30 @@
 import java.net.ServerSocket;
 import java.net.SocketException;
 
-/**
- * @com.intel.drl.spec_ref
- * 
- */
-
 public abstract class ServerSocketFactory {
-    static ServerSocketFactory defaultFactory;
-    protected ServerSocketFactory() {
-    }
+    private static ServerSocketFactory defaultFactory;
 
     public static synchronized ServerSocketFactory getDefault() {
         if (defaultFactory == null) {
-                defaultFactory = new DefaultServerSocketFactory();
+            defaultFactory = new DefaultServerSocketFactory();
         }
         return defaultFactory;
     }
 
+    protected ServerSocketFactory() {
+        super();
+    }
+
     public ServerSocket createServerSocket() throws IOException {
-        // follow RI's behavior 
+        // follow RI's behavior
         throw new SocketException("Unbound server sockets not implemented");
     }
 
-    public abstract ServerSocket createServerSocket(int port)
-            throws IOException;
+    public abstract ServerSocket createServerSocket(int port) throws IOException;
 
-    public abstract ServerSocket createServerSocket(int port, int backlog)
-            throws IOException;
+    public abstract ServerSocket createServerSocket(int port, int backlog) throws IOException;
 
-    public abstract ServerSocket createServerSocket(int port, int backlog,
-            InetAddress iAddress) throws IOException;
+    public abstract ServerSocket createServerSocket(int port, int backlog, InetAddress iAddress)
+            throws IOException;
 
-}
\ No newline at end of file
+}

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/SocketFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/SocketFactory.java?rev=726554&r1=726553&r2=726554&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/SocketFactory.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/SocketFactory.java
Sun Dec 14 14:07:46 2008
@@ -28,16 +28,9 @@
 import java.net.SocketException;
 import java.net.UnknownHostException;
 
-/**
- * @com.intel.drl.spec_ref
- * 
- */
 public abstract class SocketFactory {
 
-    static SocketFactory defaultFactory;
-    
-    protected SocketFactory() {
-    }
+    private static SocketFactory defaultFactory;
 
     public static synchronized SocketFactory getDefault() {
         if (defaultFactory == null) {
@@ -46,21 +39,23 @@
         return defaultFactory;
     }
 
+    protected SocketFactory() {
+        super();
+    }
+
     public Socket createSocket() throws IOException {
-        // follow RI's behavior 
+        // follow RI's behavior
         throw new SocketException("Unconnected sockets not implemented");
     }
 
-    public abstract Socket createSocket(String host, int port)
-            throws IOException, UnknownHostException;
-
-    public abstract Socket createSocket(String host, int port,
-            InetAddress localHost, int localPort) throws IOException,
+    public abstract Socket createSocket(String host, int port) throws IOException,
             UnknownHostException;
 
-    public abstract Socket createSocket(InetAddress host, int port)
-            throws IOException;
+    public abstract Socket createSocket(String host, int port, InetAddress localHost, int
localPort)
+            throws IOException, UnknownHostException;
+
+    public abstract Socket createSocket(InetAddress host, int port) throws IOException;
 
-    public abstract Socket createSocket(InetAddress address, int port,
-            InetAddress localAddress, int localPort) throws IOException;
-}
\ No newline at end of file
+    public abstract Socket createSocket(InetAddress address, int port, InetAddress localAddress,
+            int localPort) throws IOException;
+}



Mime
View raw message