You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by dl...@apache.org on 2001/03/05 02:26:40 UTC

cvs commit: jakarta-velocity/src/java/org/apache/velocity/util StringUtils.java

dlr         01/03/04 17:26:39

  Modified:    src/java/org/apache/velocity/util StringUtils.java
  Log:
  We know we want to�fill the buffer.
  
  Revision  Changes    Path
  1.8       +2 -2      jakarta-velocity/src/java/org/apache/velocity/util/StringUtils.java
  
  Index: StringUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/util/StringUtils.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- StringUtils.java	2001/02/27 16:27:11	1.7
  +++ StringUtils.java	2001/03/05 01:26:38	1.8
  @@ -74,7 +74,7 @@
    * string utilities class.
    *
    *  @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
  - *  @version $Id: StringUtils.java,v 1.7 2001/02/27 16:27:11 jvanzyl Exp $
  + *  @version $Id: StringUtils.java,v 1.8 2001/03/05 01:26:38 dlr Exp $
    */
   public class StringUtils
   {
  @@ -269,7 +269,7 @@
               {
                   FileReader fr = new FileReader(f);
                   char[] template = new char[(int) f.length()];
  -                fr.read(template, 0, (int) f.length());
  +                fr.read(template);
                   contents = new String(template);
               }
               catch (Exception e)