costin      01/05/26 10:28:55

  Modified:    src/share/org/apache/tomcat/util/qlog FastDateFormat.java
  Log:
  Added a comment in FastDateFormat about the intention to merge it and use it
  for general formating ( not only log )
  
  Small optimization ( append(StringBuffer) )
  
  Revision  Changes    Path
  1.2       +4 -1      
jakarta-tomcat/src/share/org/apache/tomcat/util/qlog/FastDateFormat.java
  
  Index: FastDateFormat.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/qlog/FastDateFormat.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FastDateFormat.java       2001/03/02 04:11:50     1.1
  +++ FastDateFormat.java       2001/05/26 17:28:55     1.2
  @@ -75,6 +75,8 @@
    * StringBuffer, FieldPosition).  If you care about the field
    * position, call the underlying DateFormat directly.
    *
  + * @deprecated This class will be merged with DateTool and moved in buf, to be
  + *   used in all tomcat.
    * @author Stan Bailes
    * @author Alex Chaffee
    **/
  @@ -121,7 +123,8 @@
                    sb.setCharAt(--pos, Character.forDigit(ms % 10, 10));
            }
           }
  -     toAppendTo.append(sb.toString());
  +     toAppendTo.append(sb); // StringBuffer will call toString internally,
  +     // except for 1.4 where append(SB) is defined - one more object saved
        return toAppendTo;
       }
   
  
  
  

Reply via email to