2004-02-11 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java (setReuseAddress): Use Boolean.valueOf() instead of creating a new Boolean object. (setBroadcast): Likewise. * java/net/MulticastSocket.java (setLoopbackMode): Likewise. * java/net/ServerSocket.java (setReuseAddress): Likewise. * java/net/Socket.java (setTcpNoDelay): Likewise. (setSoLinger): Likewise. (setOOBInline): Likewise. (setKeepAlive): Likewise. (setReuseAddress): Likewise. * java/net/URLConnection.java (setContentHandler): Replace == with equals(). * java/net/URLStreamHandler.java (hostSEquals): Fix checking host addresses. (toExternalForm): Dont check protocol for null. We know already its not null. From-SVN: r77670
This commit is contained in:
parent
e193b4082e
commit
31d25d83b6
7 changed files with 35 additions and 12 deletions
|
@ -956,7 +956,7 @@ public abstract class URLConnection
|
|||
ContentHandler handler;
|
||||
|
||||
// No content type so just handle it as the default.
|
||||
if (contentType == null || contentType == "")
|
||||
if (contentType == null || contentType.equals(""))
|
||||
return null;
|
||||
|
||||
// See if a handler has been cached for this content type.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue