harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r432181 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java
Date Thu, 17 Aug 2006 08:47:57 GMT
Author: pyang
Date: Thu Aug 17 01:47:57 2006
New Revision: 432181

URL: http://svn.apache.org/viewvc?rev=432181&view=rev
Log:
Patch applied for HARMONY-1206 ([classlib][luni] Remove a never used variable "sameAsNetworkInterface1"
in tests.api.java.net.MulticastSocketTest.)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java?rev=432181&r1=432180&r2=432181&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java
Thu Aug 17 01:47:57 2006
@@ -47,8 +47,6 @@
 
 	private NetworkInterface networkInterface1 = null;
 
-	private NetworkInterface sameAsNetworkInterface1 = null;
-
 	private NetworkInterface networkInterface2 = null;
 
 	private NetworkInterface IPV6networkInterface1 = null;
@@ -1115,15 +1113,7 @@
 				}
 			}
 
-			Enumeration addresses = networkInterface1.getInetAddresses();
-			if (addresses != null) {
-				try {
-					sameAsNetworkInterface1 = NetworkInterface
-							.getByInetAddress((InetAddress) addresses
-									.nextElement());
-				} catch (SocketException e) {
-				}
-			}
+			Enumeration addresses;
 
 			// first the first interface that supports IPV6 if one exists
 			try {



Mime
View raw message