I commited the attached patch to trunk to merge the comments of some
methods with classpath and to simplify isMulticastAddress().
Index: java/net/InetAddress.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/InetAddress.java,v
retrieving revision 1.20
diff -u -b -B -r1.20 InetAddress.java
--- java/net/InetAddress.java 29 Sep 2003 11:24:28 -0000 1.20
+++ java/net/InetAddress.java 29 Sep 2003 11:39:32 -0000
@@ -140,12 +140,12 @@
*/
public boolean isMulticastAddress()
{
- int len = addr.length;
-
- if (len == 4)
+ // Mask against high order bits of 1110
+ if (addr.length == 4)
return (addr [0] & 0xF0) == 0xE0;