From b36f8eef237505f078dd95cd2d50183f990c35aa Mon Sep 17 00:00:00 2001 From: mkoch Date: Wed, 25 Sep 2002 05:05:07 +0000 Subject: 2002-09-25 Michael Koch * java/net/DatagramPacket (DatagramPacket): Exception documentation added. (setData): Likewise. (setSocketAddress): Likewise. * java/net/DatagramSocketImpl.java (peek): Documentation addded. (peekData): Documentation addded. (send): Documentation addded. (receive): Documentation addded. (connect): New method. (disconnect): New method. (joinGroup): New abstract method. (leaveGroup): New abstract method. * java/net/InetSocketAddress.java (InetSocketAddress): Documentation added. (equals): final keyword added. (getAddress): final keyword added. (getHostName): final keyword added. (getPort): final keyword added. (hashCode): final keyword added. (isUnresolved): final keyword added. * java/net/MulticastSocket.java (MulticastSocket): Documentation added. (MulticastSocket): New method. (joinGroup): Documentation added. (joinGroup): New method. (leaveGroup): Documentation added. (leaveGroup): New method. (send): Documentation added. * java/net/NetworkInterface.java (getByName): Documentation added. (getByInetAddress): Documentation added. (getNetworkInterfaces): Documentation added. * java/net/PlainDatagramSocketImpl.java (connect): New method. (disconnect): New method. * java/net/SocketImpl.java (create): Documentation added. (shutdownInput): Convert public to protected, as it always was. (shutdownOutput): Convert public to protected, as it always was. * java/net/SocketOptions.java (whole file): Reintented. * java/net/URLClassLoader.java (URLClassLoader): SecurityManager check added, documentation added. (findResources): Documentation added. (findClass): Documentation added. (newInstance): More correct method arguments. * java/net/URLConnection.java (connect): Documentation added. (getContent): Documentation added. (getPermission): Documentation added. (getInputStream): Documentation added. (getOutputStream): Documentation added. (setDoInput): Throw correct exception, documentation added. (setDoOutput): Throw correct exception, documentation added. (setAllowUserInteraction): Throw correct exception, documentation added. (setUseCaches): Throw correct exception, documentation added. (setIfModifiedSince): Throw correct exception, documentation added. (setRequestProperty): Throw exception, documentation added. (addRequestProperty): Throw exception, documentation added. (getRequestProperty): Throw exception, documentation added. (getRequestProperties): Documentation added. (setContentHandlerFactory): Documentation added. (guessContentTypeFromName): protected to public. (setFileNameMap): Documentation added. * java/net/URLDecoder.java (URLDecoder): New method. (decode): Documentation added. (whole file): Reindented. * java/net/URLEncoder.java (encode): Documentation added. * java/net/natPlainDatagramSocketImpl.cc (connect): New method. (disconnect): New method. * javax/naming/RefAddr: (addrType): addrType was never final. (equals): Fix typo in method name. * javax/naming/BinaryRefAddr: (equals): Fix typo in method name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57487 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/net/InetSocketAddress.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'libjava/java/net/InetSocketAddress.java') diff --git a/libjava/java/net/InetSocketAddress.java b/libjava/java/net/InetSocketAddress.java index 4a4f73683bb..20ebbfaec5a 100644 --- a/libjava/java/net/InetSocketAddress.java +++ b/libjava/java/net/InetSocketAddress.java @@ -73,7 +73,7 @@ public class InetSocketAddress extends SocketAddress * * @param port Port if the socket * - * @exception IllegalArgumentException If the port number is illegel + * @exception IllegalArgumentException If the port number is illegal */ public InetSocketAddress(int port) throws IllegalArgumentException @@ -91,9 +91,11 @@ public class InetSocketAddress extends SocketAddress /** * Constructs an InetSocketAddress instance. - * + * * @param addr Address of the socket * @param port Port if the socket + * + * @exception IllegalArgumentException If the port number is illegal */ public InetSocketAddress(String hostname, int port) throws IllegalArgumentException @@ -112,7 +114,7 @@ public class InetSocketAddress extends SocketAddress * Test if obj is a InetSocketAddress and * has the same address & port */ - public boolean equals(Object obj) + public final boolean equals(Object obj) { if (obj instanceof InetSocketAddress) { @@ -122,17 +124,17 @@ public class InetSocketAddress extends SocketAddress return false; } - public InetAddress getAddress() + public final InetAddress getAddress() { return addr; } - public String getHostName() + public final String getHostName() { return addr.getHostName(); } - public int getPort() + public final int getPort() { return port; } @@ -140,7 +142,7 @@ public class InetSocketAddress extends SocketAddress /** * TODO: see what sun does here. */ - public int hashCode() + public final int hashCode() { return port + addr.hashCode(); } @@ -148,7 +150,7 @@ public class InetSocketAddress extends SocketAddress /** * TODO: see what sun does here. */ - public boolean isUnresolved() + public final boolean isUnresolved() { return addr == null; } -- cgit v1.2.3