URLStreamHandler.java (sameFile): Fix port value comparison.
2003-06-08 Anthony Green <green@redhat.com> * java/net/URLStreamHandler.java (sameFile): Fix port value comparison. * java/net/URL.java (handler): Make package private. * gnu/gcj/protocol/http/Handler.java (getDefaultPort): New method. From-SVN: r67640
This commit is contained in:
committed by
Anthony Green
parent
51d2dfa601
commit
a8a8de4875
@@ -1,6 +1,6 @@
|
||||
// Handler.java - URLStreamHandler for http protocol.
|
||||
|
||||
/* Copyright (C) 1999 Free Software Foundation
|
||||
/* Copyright (C) 1999, 2003 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
@@ -16,7 +16,8 @@ import java.net.URLStreamHandler;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @author Warren Levy
|
||||
* @author Anthony Green <green@redhat.com>
|
||||
* @date March 26, 1999.
|
||||
*/
|
||||
|
||||
@@ -32,4 +33,9 @@ public class Handler extends URLStreamHandler
|
||||
{
|
||||
return new Connection(url);
|
||||
}
|
||||
|
||||
protected int getDefaultPort ()
|
||||
{
|
||||
return 80;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user