diff options
author | Jeroen Frijters <jeroen@sumatra.nl> | 2006-01-12 13:31:10 +0000 |
---|---|---|
committer | Jeroen Frijters <jeroen@sumatra.nl> | 2006-01-12 13:31:10 +0000 |
commit | 0a498f2829edc81344867ee9126c1a3027e1290b (patch) | |
tree | 78a277880e317a4ade7b2133f1765d1d7987df9b /java | |
parent | d3e81786e764124c1fefb3842dc48a806accc297 (diff) | |
download | classpath-0a498f2829edc81344867ee9126c1a3027e1290b.tar.gz |
2006-01-12 Jeroen Frijters <jeroen@frijters.net>
* java/net/URL.java
(static, getURLStreamHandler): Use SystemProperties.
Diffstat (limited to 'java')
-rw-r--r-- | java/net/URL.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/net/URL.java b/java/net/URL.java index fdd6a46b4..168c67a19 100644 --- a/java/net/URL.java +++ b/java/net/URL.java @@ -1,5 +1,5 @@ /* URL.java -- Uniform Resource Locator Class - Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005 + Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -38,6 +38,7 @@ exception statement from your version. */ package java.net; +import gnu.classpath.SystemProperties; import gnu.java.net.URLParseError; import java.io.IOException; @@ -198,7 +199,7 @@ public final class URL implements Serializable static { - String s = System.getProperty("gnu.java.net.nocache_protocol_handlers"); + String s = SystemProperties.getProperty("gnu.java.net.nocache_protocol_handlers"); if (s == null) cache_handlers = true; @@ -867,7 +868,7 @@ public final class URL implements Serializable // Except in very unusual environments the JDK specified one shouldn't // ever be needed (or available). String ph_search_path = - System.getProperty("java.protocol.handler.pkgs"); + SystemProperties.getProperty("java.protocol.handler.pkgs"); // Tack our default package on at the ends. if (ph_search_path != null) |