tcurdt 2003/11/20 01:25:40
Modified: src/java/org/apache/cocoon/components/sax
XMLByteStreamCompiler.java
Log:
reverted my recent change, again return a copy
Revision Changes Path
1.5 +1 -7 cocoon-2.1/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java
Index: XMLByteStreamCompiler.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XMLByteStreamCompiler.java 19 Nov 2003 01:48:12 -0000 1.4
+++ XMLByteStreamCompiler.java 20 Nov 2003 09:25:40 -0000 1.5
@@ -129,15 +129,9 @@
if (this.bufCount == 6) { // no event arrived yet
return null;
}
- /*
- TC:
- not nececcary since we create a new buffer on each recyle()
-
byte newbuf[] = new byte[this.bufCount];
System.arraycopy(this.buf, 0, newbuf, 0, this.bufCount);
return newbuf;
- */
- return buf;
}
public void startDocument() throws SAXException {
|