harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r493936 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java
Date Mon, 08 Jan 2007 04:08:49 GMT
Author: ndbeyer
Date: Sun Jan  7 20:08:48 2007
New Revision: 493936

URL: http://svn.apache.org/viewvc?view=rev&rev=493936
Log:
Remove unnecessary boxing.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java?view=diff&rev=493936&r1=493935&r2=493936
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java Sun
Jan  7 20:08:48 2007
@@ -1150,7 +1150,7 @@
             String[] parts = ipAddressString.split("\\."); //$NON-NLS-1$
             int length = parts.length;
             if (length == 1) {
-                Long value = Long.parseLong(parts[0]);
+                long value = Long.parseLong(parts[0]);
                 for (int i = 0; i < 4; i++) {
                     byteAddress[i] = (byte) (value >> ((3 - i) * 8));
                 }



Mime
View raw message