You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2004/03/17 17:37:18 UTC

cvs commit: cocoon-2.2/src/java/org/apache/cocoon/xml ParamSaxBuffer.java

vgritsenko    2004/03/17 08:37:18

  Modified:    src/java/org/apache/cocoon/xml ParamSaxBuffer.java
  Log:
  sync with 2.1: it seems to me condition was wrong here
  
  Revision  Changes    Path
  1.3       +4 -4      cocoon-2.2/src/java/org/apache/cocoon/xml/ParamSaxBuffer.java
  
  Index: ParamSaxBuffer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.2/src/java/org/apache/cocoon/xml/ParamSaxBuffer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ParamSaxBuffer.java	8 Mar 2004 14:04:00 -0000	1.2
  +++ ParamSaxBuffer.java	17 Mar 2004 16:37:18 -0000	1.3
  @@ -26,7 +26,7 @@
    *
    * Any <code>{name}</code> expression inside of the character events can be
    * replaced by the content of another SaxBuffer if it is present in the map
  - * passed to the {@link toSAX(ContentHandler, Map)} method.
  + * passed to the {@link #toSAX(ContentHandler, Map)} method.
    * 
    * @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
    * @version CVS $Id$
  @@ -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()));