You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by da...@apache.org on 2004/01/23 23:39:15 UTC

cvs commit: xml-xmlbeans/v1/src/xmlstore/org/apache/xmlbeans/impl/store Saver.java

daveremy    2004/01/23 14:39:15

  Modified:    v1/src/xmlstore/org/apache/xmlbeans/impl/store Tag:
                        xmlbeans-1-0-1_branch Saver.java
  Log:
  Submitted by:	Eric Vasilik
  
  Checkin for eric.
  Fix an case when entitizing text could incorrectly entitize a < of a element.
  
  DRTs: passed
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.4.2.1   +6 -9      xml-xmlbeans/v1/src/xmlstore/org/apache/xmlbeans/impl/store/Saver.java
  
  Index: Saver.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v1/src/xmlstore/org/apache/xmlbeans/impl/store/Saver.java,v
  retrieving revision 1.4
  retrieving revision 1.4.2.1
  diff -u -r1.4 -r1.4.2.1
  --- Saver.java	14 Nov 2003 19:57:35 -0000	1.4
  +++ Saver.java	23 Jan 2004 22:39:15 -0000	1.4.2.1
  @@ -1896,7 +1896,7 @@
   
                   lastWasBracket = _buf[ i ] == ']';
   
  -                if (++i == n)
  +                if (++i == _buf.length)
                       i = 0;
   
                   for ( int cch = _lastEmitCch ; cch > 0 ; cch-- )
  @@ -1913,7 +1913,7 @@
                       secondToLastWasBracket = lastWasBracket;
                       lastWasBracket = ch == ']';
   
  -                    if (i == n)
  +                    if (i == _buf.length)
                           i = 0;
                   }
   
  @@ -1934,7 +1934,7 @@
                       else
                           i++;
   
  -                    if (i == n)
  +                    if (i == _buf.length)
                           i = 0;
                   }
               }
  @@ -1946,7 +1946,6 @@
                   return;
   
               int i = _lastEmitIn;
  -            final int n = _buf.length;
   
               for ( int cch = _lastEmitCch ; cch > 0 ; cch-- )
               {
  @@ -1961,7 +1960,7 @@
                   else
                       i++;
   
  -                if (i == n)
  +                if (i == _buf.length)
                       i = 0;
               }
           }
  @@ -1972,7 +1971,6 @@
                   return;
   
               int i = _lastEmitIn;
  -            final int n = _buf.length;
   
               boolean lastWasDash = false;
   
  @@ -2002,7 +2000,7 @@
                       i++;
                   }
   
  -                if (i == n)
  +                if (i == _buf.length)
                       i = 0;
               }
   
  @@ -2019,7 +2017,6 @@
                   return;
   
               int i = _lastEmitIn;
  -            final int n = _buf.length;
   
               boolean lastWasQuestion = false;
   
  @@ -2046,7 +2043,7 @@
                       i++;
                   }
   
  -                if (i == n)
  +                if (i == _buf.length)
                       i = 0;
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org