[richfaces-svn-commits] JBoss Rich Faces SVN: r11560 - trunk/framework/impl/src/main/java/org/ajax4jsf/javascript.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Dec 4 12:42:52 EST 2008
Author: nbelaevski
Date: 2008-12-04 12:42:52 -0500 (Thu, 04 Dec 2008)
New Revision: 11560
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/javascript/JSMin.java
Log:
https://jira.jboss.org/jira/browse/RF-5241
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/javascript/JSMin.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/javascript/JSMin.java 2008-12-04 17:38:23 UTC (rev 11559)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/javascript/JSMin.java 2008-12-04 17:42:52 UTC (rev 11560)
@@ -42,9 +42,10 @@
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PushbackInputStream;
-import org.ajax4jsf.io.FastBufferOutputStream;
+
+
public class JSMin {
private static final int EOF = -1;
@@ -59,7 +60,7 @@
private int column;
public JSMin(InputStream in, OutputStream out) {
- this.in = new PushbackInputStream(in,2);
+ this.in = new PushbackInputStream(in);
this.out = out;
this.line = 0;
this.column = 0;
@@ -116,10 +117,6 @@
in.unread(lookaheadChar);
return lookaheadChar;
}
-
- void back(byte[] b) throws IOException {
- in.unread(b);
- }
/**
* next -- get the next character, excluding comments. peek() is used to see
@@ -136,6 +133,7 @@
return c;
}
}
+
case '*':
get();
for (;;) {
@@ -146,14 +144,6 @@
return ' ';
}
break;
- case '@':
- // TODO: add spaces skipping
- FastBufferOutputStream bs = new FastBufferOutputStream();
- bs.write('*');
- bs.write('@');
- back(bs.toByteArray());
- bs.close();
- return c;
case EOF:
throw new UnterminatedCommentException(line,column);
}
More information about the richfaces-svn-commits
mailing list