You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by hi...@apache.org on 2001/11/12 18:33:39 UTC
cvs commit: xml-batik/sources/org/apache/batik/css/parser Scanner.java
hillion 01/11/12 09:33:38
Modified: sources/org/apache/batik/css/parser Scanner.java
Log:
Fixed a regression in the CSS scanner.
Revision Changes Path
1.8 +2 -3 xml-batik/sources/org/apache/batik/css/parser/Scanner.java
Index: Scanner.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/css/parser/Scanner.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Scanner.java 2001/11/08 23:02:43 1.7
+++ Scanner.java 2001/11/12 17:33:38 1.8
@@ -16,7 +16,7 @@
* units.
*
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
- * @version $Id: Scanner.java,v 1.7 2001/11/08 23:02:43 deweese Exp $
+ * @version $Id: Scanner.java,v 1.8 2001/11/12 17:33:38 hillion Exp $
*/
public class Scanner {
@@ -1208,7 +1208,7 @@
*/
protected int nextChar() throws IOException {
if ((readPosition == readCount) && (!fillReadBuffer())) {
- return (char)(current = -1);
+ return current = -1;
}
current = readBuffer[readPosition++];
@@ -1222,7 +1222,6 @@
if (position == buffer.length) {
char[] t = new char[position * 3 / 2];
- // System.out.println("Resizing Buffer: " + t.length);
System.arraycopy(buffer, 0, t, 0, position);
buffer = t;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org