rwaldhoff    01/08/23 14:36:17

  Modified:    httpclient/src/java/org/apache/commons/httpclient Tag:
                        rlwrefactoring URLUtil.java
  Log:
  removing unused date format
  fixing some tabs (changing to spaces)
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.1.1.2.2 +7 -16     
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URLUtil.java
  
  Index: URLUtil.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URLUtil.java,v
  retrieving revision 1.1.1.1.2.1
  retrieving revision 1.1.1.1.2.2
  diff -u -r1.1.1.1.2.1 -r1.1.1.1.2.2
  --- URLUtil.java      2001/08/14 18:02:13     1.1.1.1.2.1
  +++ URLUtil.java      2001/08/23 21:36:17     1.1.1.1.2.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URLUtil.java,v
 1.1.1.1.2.1 2001/08/14 18:02:13 rwaldhoff Exp $
  - * $Revision: 1.1.1.1.2.1 $
  - * $Date: 2001/08/14 18:02:13 $
  + * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URLUtil.java,v
 1.1.1.1.2.2 2001/08/23 21:36:17 rwaldhoff Exp $
  + * $Revision: 1.1.1.1.2.2 $
  + * $Date: 2001/08/23 21:36:17 $
    *
    * ====================================================================
    *
  @@ -82,7 +82,8 @@
    * @author Craig R. McClanahan
    * @author Tim Tye
    * @author Remy Maucherat
  - * @version $Revision: 1.1.1.1.2.1 $ $Date: 2001/08/14 18:02:13 $
  + * @author Rodney Waldhoff
  + * @version $Revision: 1.1.1.1.2.2 $ $Date: 2001/08/23 21:36:17 $
    */
   
   public final class URLUtil {
  @@ -90,14 +91,6 @@
   
       // -------------------------------------------------------------- Variables
   
  -
  -    /**
  -     * The DateFormat to use for generating readable dates in cookies.
  -     */
  -    private static SimpleDateFormat format =
  -        new SimpleDateFormat(" EEEE, dd-MMM-yy kk:mm:ss zz");
  -
  -
       /**
        * Array containing the safe characters set.
        */
  @@ -114,8 +107,6 @@
   
       static {
   
  -        format.setTimeZone(TimeZone.getTimeZone("GMT"));
  -
           safeCharacters = new BitSet(256);
           int i;
           for (i = 'a'; i <= 'z'; i++) {
  @@ -256,10 +247,10 @@
            * and '/' shouldn't be encoded.
            */
   
  -     int maxBytesPerChar = 10;
  +        int maxBytesPerChar = 10;
           int caseDiff = ('a' - 'A');
           StringBuffer rewrittenPath = new StringBuffer(path.length());
  -     ByteArrayOutputStream buf = new ByteArrayOutputStream(maxBytesPerChar);
  +        ByteArrayOutputStream buf = new ByteArrayOutputStream(maxBytesPerChar);
           OutputStreamWriter writer = null;
           try {
               // FIXME: Use the same encoding as the one specified above
  
  
  

Reply via email to