cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/xml ParamSaxBuffer.java
Date Wed, 17 Mar 2004 16:20:08 GMT
vgritsenko    2004/03/17 08:20:08

  Modified:    src/java/org/apache/cocoon/xml ParamSaxBuffer.java
  Log:
  it seems to me condition was wrong here
  
  Revision  Changes    Path
  1.4       +3 -3      cocoon-2.1/src/java/org/apache/cocoon/xml/ParamSaxBuffer.java
  
  Index: ParamSaxBuffer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/xml/ParamSaxBuffer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ParamSaxBuffer.java	5 Mar 2004 13:03:01 -0000	1.3
  +++ ParamSaxBuffer.java	17 Mar 2004 16:20:08 -0000	1.4
  @@ -51,7 +51,7 @@
        * substitution.
        */
       public void characters(char ch[], int start, int length) throws SAXException {
  -        int end = start + length;
  +        final int end = start + length;
           for (int i = start; i < end; i++) {
               if (ch[i] == '{') {
                   // Send any collected characters so far
  @@ -68,7 +68,7 @@
                       }
                       name.append(ch[j]);
                   }
  -                if (j == length) {
  +                if (j == end) {
                       throw new SAXException("Unclosed '}'");
                   }
                   addBit(new Parameter(name.toString()));
  
  
  

Mime
View raw message