mbecke 2003/07/11 14:55:09 Modified: httpclient/src/java/org/apache/commons/httpclient URI.java Log: Removed use of sun.* class. PR: 21532 Revision Changes Path 1.38 +5 -9 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java Index: URI.java =================================================================== RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- URI.java 5 Jul 2003 22:31:20 -0000 1.37 +++ URI.java 11 Jul 2003 21:55:09 -0000 1.38 @@ -71,8 +71,6 @@ import java.util.Locale; import java.util.BitSet; import java.util.Hashtable; -import java.security.AccessController; -import sun.security.action.GetPropertyAction; /** * The interface for the URI(Uniform Resource Identifiers) version of RFC 2396. @@ -603,9 +601,7 @@ defaultDocumentCharset = defaultDocumentCharsetByLocale; } // in order to support platform encoding - defaultDocumentCharsetByPlatform = - (String) AccessController.doPrivileged( - new GetPropertyAction("file.encoding")); + defaultDocumentCharsetByPlatform = System.getProperty("file.encoding"); if (defaultDocumentCharset == null) { // set the default document charset defaultDocumentCharset = defaultDocumentCharsetByPlatform;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]