InetAddress.java, URL.java: Reformated.
2003-09-29 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java, java/net/URL.java: Reformated. From-SVN: r71897
This commit is contained in:
parent
6cd6aed790
commit
7da1da8352
3 changed files with 64 additions and 51 deletions
|
@ -183,7 +183,8 @@ public final class URL implements Serializable
|
|||
|
||||
static
|
||||
{
|
||||
String s = System.getProperty("gnu.java.net.nocache_protocol_handlers");
|
||||
String s = System.getProperty ("gnu.java.net.nocache_protocol_handlers");
|
||||
|
||||
if (s == null)
|
||||
cache_handlers = true;
|
||||
else
|
||||
|
@ -761,7 +762,7 @@ public final class URL implements Serializable
|
|||
// First, see if a protocol handler is in our cache.
|
||||
if (cache_handlers)
|
||||
{
|
||||
if ((ph = (URLStreamHandler) ph_cache.get(protocol)) != null)
|
||||
if ((ph = (URLStreamHandler) ph_cache.get (protocol)) != null)
|
||||
return ph;
|
||||
}
|
||||
|
||||
|
@ -831,7 +832,7 @@ public final class URL implements Serializable
|
|||
if (ph != null
|
||||
&& cache_handlers)
|
||||
if (ph instanceof URLStreamHandler)
|
||||
ph_cache.put(protocol, ph);
|
||||
ph_cache.put (protocol, ph);
|
||||
else
|
||||
ph = null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue