[kaffe] CVS kaffe (kaz): libraries/javalib/java/net/NetworkInterface.java

Kaffe CVS cvs-commits at kaffe.org
Mon Apr 25 09:35:29 PDT 2005


PatchSet 6422 
Date: 2005/04/25 16:31:09
Author: kaz
Branch: HEAD
Tag: (none) 
Log:


2005-04-25  Ito Kazumitsu <kaz at maczuka.gcd.org>

        * libraries/javalib/java/net/NetworkInterface.java
        (getByName, getByInetAddress): call getNetworkInterfaces()
        so that condensed result may be returned.

Members: 
	ChangeLog:1.3950->1.3951 
	libraries/javalib/java/net/NetworkInterface.java:1.15->1.16 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3950 kaffe/ChangeLog:1.3951
--- kaffe/ChangeLog:1.3950	Mon Apr 25 16:01:42 2005
+++ kaffe/ChangeLog	Mon Apr 25 16:31:09 2005
@@ -1,3 +1,9 @@
+2005-04-25  Ito Kazumitsu <kaz at maczuka.gcd.org>
+
+	* libraries/javalib/java/net/NetworkInterface.java
+	(getByName, getByInetAddress): call getNetworkInterfaces()
+	so that condensed result may be returned.
+
 2005-04-25  Guilhem Lavaux  <guilhem at kaffe.org>
 
 	* kaffe/kaffevm/classMethod.c
Index: kaffe/libraries/javalib/java/net/NetworkInterface.java
diff -u kaffe/libraries/javalib/java/net/NetworkInterface.java:1.15 kaffe/libraries/javalib/java/net/NetworkInterface.java:1.16
--- kaffe/libraries/javalib/java/net/NetworkInterface.java:1.15	Tue Apr 19 16:44:23 2005
+++ kaffe/libraries/javalib/java/net/NetworkInterface.java	Mon Apr 25 16:31:14 2005
@@ -148,9 +148,7 @@
   public static NetworkInterface getByName(String name)
     throws SocketException
   {
-    Vector networkInterfaces = VMNetworkInterface.getInterfaces();
-
-    for (Enumeration e = networkInterfaces.elements(); e.hasMoreElements();)
+    for (Enumeration e = getNetworkInterfaces(); e.hasMoreElements();)
       {
 	NetworkInterface tmp = (NetworkInterface) e.nextElement();
 
@@ -175,9 +173,7 @@
   public static NetworkInterface getByInetAddress(InetAddress addr)
     throws SocketException
   {
-    Vector networkInterfaces = VMNetworkInterface.getInterfaces();
-
-    for (Enumeration interfaces = networkInterfaces.elements();
+    for (Enumeration interfaces = getNetworkInterfaces();
          interfaces.hasMoreElements();)
       {
 	NetworkInterface tmp = (NetworkInterface) interfaces.nextElement();




More information about the kaffe mailing list