[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-cvs
Subject:    svn commit: r588782 -
From:       cezar () apache ! org
Date:       2007-10-26 21:33:31
Message-ID: 20071026213331.F3C9C1A9832 () eris ! apache ! org
[Download RAW message or body]

Author: cezar
Date: Fri Oct 26 14:33:31 2007
New Revision: 588782

URL: http://svn.apache.org/viewvc?rev=588782&view=rev
Log:
Fixing assert.

checkintest passes


Modified:
    xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Saver.java

Modified: xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Saver.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Saver.java?rev=588782&r1=588781&r2=588782&view=diff
 ==============================================================================
--- xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Saver.java (original)
+++ xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Saver.java Fri Oct 26 \
14:33:31 2007 @@ -1363,8 +1363,7 @@
                 }
             }
 
-            assert _out == 0;
-            assert _free == _buf.length - _in;
+            assert _buf==null || _free == (_in>=_out ? _buf.length - (_in - _out) : \
_out - _in ) : "_buf.length:" + _buf.length + " _in:" + _in + " _out:" + _out + " \
_free:" + _free;  }
 
         private void entitizeAttrValue ( )
@@ -1785,7 +1784,7 @@
         _buf is a circular buffer, useful data is before _in up to _out, there are 2 \
posible configurations:  1: _in<=_out  |data|_in  empty  _out|data|
         2: _out<_in   |empty _out|data|_in  empty|
-        _free is used to keep around the remaining empty space in the bufer so \
assert _out==0 && _free == _buf.length - _in;  +        _free is used to keep around \
the remaining empty space in the bufer so  assert _buf==null || _free == (_in>=_out ? \
                _buf.length - (_in - _out) : _out - _in ) ;
          */
     }
 



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic