2003-03-03 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java (connect): Merged comment from classpath. (receive): Merged documentation from classpath. * java/net/Socket.java (setSoTimeout): Clarified documentation. * java/net/URL.java (getPath): Merged from classpath. (getUserInfo): Merged from classpath. (getQuery): Merged from classpath. * java/net/URLStreamHandler.java (toExternalForm): Merged from classpath. From-SVN: r63714
This commit is contained in:
parent
6e1b3a7c94
commit
6579ac0c00
5 changed files with 30 additions and 12 deletions
|
@ -451,8 +451,11 @@ public abstract class URLStreamHandler
|
|||
int size = protocol.length() + host.length() + file.length() + 24;
|
||||
StringBuffer sb = new StringBuffer(size);
|
||||
|
||||
sb.append(protocol);
|
||||
sb.append(':');
|
||||
if (protocol != null && protocol.length() > 0)
|
||||
{
|
||||
sb.append(protocol);
|
||||
sb.append(":");
|
||||
}
|
||||
|
||||
if (host.length() != 0)
|
||||
sb.append("//").append(host);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue