mbecke      2003/07/11 14:52:07

  Modified:    httpclient/src/java/org/apache/commons/httpclient Tag:
                        HTTPCLIENT_2_0_BRANCH URI.java
  Log:
  Removed use of sun.* class.
  PR: 21532
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.36.2.1  +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.36
  retrieving revision 1.36.2.1
  diff -u -r1.36 -r1.36.2.1
  --- URI.java  1 Jul 2003 01:12:29 -0000       1.36
  +++ URI.java  11 Jul 2003 21:52:07 -0000      1.36.2.1
  @@ -72,8 +72,6 @@
   import java.util.BitSet;
   import java.util.Hashtable;
   import java.net.URL;
  -import java.security.AccessController;
  -import sun.security.action.GetPropertyAction;
   
   /**
    * The interface for the URI(Uniform Resource Identifiers) version of RFC 2396.
  @@ -617,9 +615,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]

Reply via email to