diff options
author | Jesse Wilson <jessewilson@google.com> | 2010-09-29 09:59:08 -0700 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2010-09-29 09:59:08 -0700 |
commit | 3cef3ce2868baeb334d83a4f630294e04dd7df05 (patch) | |
tree | 4a5a46aa004b12120fb818e2efe9a49bc7d7f382 | |
parent | 1f8243e3d2b5a3f8e0398c304d1dea0395cbc368 (diff) | |
download | libcore-3cef3ce2868baeb334d83a4f630294e04dd7df05.zip libcore-3cef3ce2868baeb334d83a4f630294e04dd7df05.tar.gz libcore-3cef3ce2868baeb334d83a4f630294e04dd7df05.tar.bz2 |
Support creating unbound server sockets in DefaultServerSocketFactory.
Change-Id: I34106bb55ad99a134b4aae4e24e61b59c0aaa967
http://b/2587385
-rw-r--r-- | luni/src/main/java/javax/net/DefaultServerSocketFactory.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/luni/src/main/java/javax/net/DefaultServerSocketFactory.java b/luni/src/main/java/javax/net/DefaultServerSocketFactory.java index 9e31be4..f8a526e 100644 --- a/luni/src/main/java/javax/net/DefaultServerSocketFactory.java +++ b/luni/src/main/java/javax/net/DefaultServerSocketFactory.java @@ -21,13 +21,11 @@ import java.io.IOException; import java.net.InetAddress; import java.net.ServerSocket; -/** - * Default implementation of {@link javax.net.ServerSocketFactory} - */ final class DefaultServerSocketFactory extends ServerSocketFactory { - DefaultServerSocketFactory() { - super(); + @Override + public ServerSocket createServerSocket() throws IOException { + return new ServerSocket(); } @Override @@ -45,5 +43,4 @@ final class DefaultServerSocketFactory extends ServerSocketFactory { throws IOException { return new ServerSocket(port, backlog, iAddress); } - } |