jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1441582 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Filter.java
Date Fri, 01 Feb 2013 18:50:02 GMT
Author: alexparvulescu
Date: Fri Feb  1 18:50:02 2013
New Revision: 1441582

URL: http://svn.apache.org/viewvc?rev=1441582&view=rev
Log:
OAK-600 Query log tweaks
 - fixed the test, again

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Filter.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Filter.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Filter.java?rev=1441582&r1=1441581&r2=1441582&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Filter.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Filter.java
Fri Feb  1 18:50:02 2013
@@ -149,8 +149,9 @@ public interface Filter {
             if (f.equals(l)) {
                 return f;
             }
-            return (firstIncluding ? "[" : "(") + f + ".." + l
-                    + (lastIncluding ? "]" : ")");
+            String fi = first == null ? "" : (firstIncluding ? "[" : "(");
+            String li = last == null ? "" : (lastIncluding ? "]" : ")");
+            return fi + f + ".." + l + li;
         }
 
     }



Mime
View raw message