jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cko...@apache.org
Subject svn commit: r824276 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Text.java
Date Mon, 12 Oct 2009 09:32:14 GMT
Author: ckoell
Date: Mon Oct 12 09:32:14 2009
New Revision: 824276

URL: http://svn.apache.org/viewvc?rev=824276&view=rev
Log:
JCR-2354 Remove double quote as illegal XPathSearchChar from helper method in Text

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Text.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Text.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Text.java?rev=824276&r1=824275&r2=824276&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Text.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Text.java
Mon Oct 12 09:32:14 2009
@@ -484,7 +484,7 @@
     }
 
     /**
-     * Escapes all illegal XPath search characters of a string.
+     * Escapes illegal XPath search characters at the end of a string.
      * <p>Example:<br>
      * A search string like 'test?' will run into a ParseException
      * documented in http://issues.apache.org/jira/browse/JCR-1248
@@ -498,8 +498,7 @@
         char c = s.charAt(s.length() - 1);
         // NOTE: keep this in sync with _ESCAPED_CHAR below!
         if (c == '!' || c == '(' || c == ':' || c == '^'
-            || c == '[' || c == ']' || c == '\"' || c == '{'
-            || c == '}' || c == '?') {
+            || c == '[' || c == ']' || c == '{' || c == '}' || c == '?') {
             sb.append('\\');
         }
         sb.append(c);



Mime
View raw message