summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-12-18 21:37:38 +0000
committerTom Tromey <tromey@redhat.com>2006-12-18 21:37:38 +0000
commit9b4f597b755f9a4a660b972e8994dc2ebbd7b4e9 (patch)
tree5d60e0cefcc68251ddfc64051f9d9fe1af2dcd0b /vm
parentaa0a5322b1e384e251a2139d1d8ecc5179b46782 (diff)
downloadclasspath-9b4f597b755f9a4a660b972e8994dc2ebbd7b4e9.tar.gz
* vm/reference/java/net/VMNetworkInterface.java (addresses):
Genericized. (VMNetworkInterface): Updated. * java/net/URLClassLoader.java (urls): Genericized. (urlinfos): Likewise. (addURLImpl): Updated. (findClass): Likewise. (newInstance): Likewise. * java/net/URL.java (ph_cache): Genericized. (getURLStreamHandler): Updated. * java/net/ResolverCache.java (cache): Genericized. (killqueue): Likewise. * java/net/NetworkInterface.java (getInetAddresses): Genericized. * java/net/MimeTypeMapper.java (mime_types): Genericized. (fillFromFile): Likewise. (main): Likewise. * gnu/java/net/protocol/jar/Handler.java (flat): Genericized. * gnu/java/net/protocol/jar/Connection.java (JarFileCache.cache): Genericized. (JarFileCache.get): Updated. * gnu/java/net/protocol/http/SimpleCookieManager.java (cookies): Genericized. (SimpleCookieManager): Updated. (setCookie): Likewise. (getCookies): Likewise. (addCookies): Likewise. * gnu/java/net/protocol/http/Request.java (responseHeaderHandlers): Genericized. (Request): Updated. (createResponseBodyStream): Removed unused variable. * gnu/java/net/protocol/http/HTTPURLConnection.java (connect): Remove unused variable. (getRequestProperties): Genericized. * gnu/java/net/protocol/http/HTTPConnection.java (handshakeCompletedListeners): Genericized. (nonceCounts): Likewise. (HTTPConnection): Updated. (Pool.connectionPool): Likewise. (getNonceCount): Updated. (incrementNonce): Likewise. * gnu/java/net/protocol/http/Headers.java (headers): Genericized. * gnu/java/net/protocol/http/ChunkedInputStream.java (CR, LF): Removed unused fields. * gnu/java/net/protocol/ftp/FTPURLConnection.java (connect): Genericized. (getRequestProperties): Likewise. (addRequestPropertyValue): Likewise. Fixed return result. * gnu/java/net/protocol/ftp/FTPConnection.java (nameList): Genericized. * gnu/java/net/local/LocalSocket.java: Fixed imports. * gnu/java/net/local/LocalServerSocket.java: Fixed imports. * gnu/java/net/loader/URLStreamHandlerCache.java (factoryCache): Genericized. (add): Updated. (get): Likewise. * gnu/java/net/loader/URLLoader.java (getClassPath): Genericized. * gnu/java/net/loader/JarURLLoader.java (classPath): Genericized. (initialize): Updated. (getClassPath): Genericized. * gnu/java/net/IndexListParser.java (prefixes): Genericized. (IndexListParser): Updated. (getHeaders): Likewise. * gnu/java/net/HeaderFieldHelper.java (headerFieldKeys): Genericized. (headerFieldValues): Likewise. (HeaderFieldHelper): Updated. (getHeaderFieldValueByKey): Likewise. (getHeaderFields): Likewise. * gnu/java/net/GetLocalHostAction.java: Genericized. * gnu/java/net/DefaultContentHandlerFactory.java (imageTypes): Genericized.
Diffstat (limited to 'vm')
-rw-r--r--vm/reference/java/net/VMNetworkInterface.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/vm/reference/java/net/VMNetworkInterface.java b/vm/reference/java/net/VMNetworkInterface.java
index 7f1e3ad98..e28e6161a 100644
--- a/vm/reference/java/net/VMNetworkInterface.java
+++ b/vm/reference/java/net/VMNetworkInterface.java
@@ -43,7 +43,6 @@ import gnu.classpath.Configuration;
import java.nio.ByteBuffer;
import java.util.HashSet;
import java.util.Set;
-import java.util.Vector;
/**
* This class models a network interface on the host computer. A network
@@ -58,12 +57,12 @@ import java.util.Vector;
final class VMNetworkInterface
{
String name;
- Set addresses;
+ Set<InetAddress> addresses;
VMNetworkInterface(String name)
{
this.name = name;
- addresses = new HashSet();
+ addresses = new HashSet<InetAddress>();
}
/**
@@ -72,7 +71,7 @@ final class VMNetworkInterface
*/
public VMNetworkInterface()
{
- addresses = new HashSet();
+ addresses = new HashSet<InetAddress>();
try
{
addresses.add(InetAddress.getByName("0.0.0.0"));