[kaffe] CVS kaffe (dalibor): Fixed build again
Kaffe CVS
cvs-commits at kaffe.org
Sun May 23 15:19:03 PDT 2004
PatchSet 4775
Date: 2004/05/23 21:22:18
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fixed build again
2004-05-23 Dalibor Topic <robilad at kaffe.org>
* libraries/javalib/java/net/NetworkInterface.java:
(getByName, getByInetAddress) Fixed build again.
Members:
ChangeLog:1.2346->1.2347
libraries/javalib/java/net/NetworkInterface.java:1.7->1.8
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2346 kaffe/ChangeLog:1.2347
--- kaffe/ChangeLog:1.2346 Sun May 23 20:39:04 2004
+++ kaffe/ChangeLog Sun May 23 21:22:18 2004
@@ -1,6 +1,11 @@
2004-05-23 Dalibor Topic <robilad at kaffe.org>
* libraries/javalib/java/net/NetworkInterface.java:
+ (getByName, getByInetAddress) Fixed build again.
+
+2004-05-23 Dalibor Topic <robilad at kaffe.org>
+
+ * libraries/javalib/java/net/NetworkInterface.java:
(condense) new method.
(getNetworkInterfaces) Use condense.
(getByName, getByInetAddress) Use getNetworkInterfaces.
Index: kaffe/libraries/javalib/java/net/NetworkInterface.java
diff -u kaffe/libraries/javalib/java/net/NetworkInterface.java:1.7 kaffe/libraries/javalib/java/net/NetworkInterface.java:1.8
--- kaffe/libraries/javalib/java/net/NetworkInterface.java:1.7 Sun May 23 20:39:10 2004
+++ kaffe/libraries/javalib/java/net/NetworkInterface.java Sun May 23 21:22:20 2004
@@ -143,9 +143,7 @@
public static NetworkInterface getByName(String name)
throws SocketException
{
- Vector networkInterfaces = getNetworkInterfaces();
-
- for (Enumeration e = networkInterfaces.elements(); e.hasMoreElements();)
+ for (Enumeration e = getNetworkInterfaces(); e.hasMoreElements();)
{
NetworkInterface tmp = (NetworkInterface) e.nextElement();
@@ -168,9 +166,7 @@
public static NetworkInterface getByInetAddress(InetAddress addr)
throws SocketException
{
- Vector networkInterfaces = getNetworkInterfaces();
-
- for (Enumeration interfaces = networkInterfaces.elements();
+ for (Enumeration interfaces = getNetworkInterfaces();
interfaces.hasMoreElements();)
{
NetworkInterface tmp = (NetworkInterface) interfaces.nextElement();
More information about the kaffe
mailing list