You are viewing a plain text version of this content. The canonical link for it is here.
Posted to crimson-cvs@xml.apache.org by ed...@apache.org on 2001/03/13 01:22:32 UTC
cvs commit: xml-crimson/src/org/xml/sax/helpers AttributesImpl.java
edwingo 01/03/12 16:22:32
Modified: src/org/xml/sax/helpers AttributesImpl.java
Log:
Fixed removeAttribute (known bug that should be fixed in the next release
of SAX)
Revision Changes Path
1.2 +6 -2 xml-crimson/src/org/xml/sax/helpers/AttributesImpl.java
Index: AttributesImpl.java
===================================================================
RCS file: /home/cvs/xml-crimson/src/org/xml/sax/helpers/AttributesImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AttributesImpl.java 2000/11/23 01:53:36 1.1
+++ AttributesImpl.java 2001/03/13 00:22:30 1.2
@@ -2,7 +2,7 @@
// Written by David Megginson, sax@megginson.com
// NO WARRANTY! This class is in the public domain.
-// $Id: AttributesImpl.java,v 1.1 2000/11/23 01:53:36 edwingo Exp $
+// $Id: AttributesImpl.java,v 1.2 2001/03/13 00:22:30 edwingo Exp $
package org.xml.sax.helpers;
@@ -430,7 +430,11 @@
public void removeAttribute (int index)
{
if (index >= 0 && index < length) {
- data[index] = null;
+ data[index*5] = null;
+ data[index*5+1] = null;
+ data[index*5+2] = null;
+ data[index*5+3] = null;
+ data[index*5+4] = null;
if (index < length - 1) {
System.arraycopy(data, (index+1)*5, data, index*5,
(length-index)*5);
---------------------------------------------------------------------
To unsubscribe, e-mail: crimson-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: crimson-cvs-help@xml.apache.org