W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2008

2002/css-validator/org/w3c/css/parser/analyzer CssParser.java,1.43,1.44

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 28 Mar 2008 15:44:44 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1JfGl2-0007V2-Eh@lionel-hutz.w3.org>

Update of /sources/public/2002/css-validator/org/w3c/css/parser/analyzer
In directory hutz:/tmp/cvs-serv28796

Modified Files:
	CssParser.java 
Log Message:
see CssParser.jj

Index: CssParser.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.java,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- CssParser.java	28 Mar 2008 15:39:28 -0000	1.43
+++ CssParser.java	28 Mar 2008 15:44:42 -0000	1.44
@@ -3079,10 +3079,13 @@
   }
 
   String convertStringIndex(String s, int start, int len, boolean escapeFirst) throws ParseException {
-    StringBuilder buf = new StringBuilder(len);
     int index = start;
     int t;
     int maxCount = 0;
+    if ((start == 0) && (len == s.length()) && (s.indexOf('\\') == -1)) {
+        return s;
+    }
+    StringBuilder buf = new StringBuilder(len);
 
     while (index < len) {
         char c = s.charAt(index);
Received on Friday, 28 March 2008 15:45:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:00 GMT