jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1305347 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/Query.java
Date Mon, 26 Mar 2012 13:29:49 GMT
Author: jukka
Date: Mon Mar 26 13:29:49 2012
New Revision: 1305347

URL: http://svn.apache.org/viewvc?rev=1305347&view=rev
Log:
OAK-28: Query implementation

Make null comparisons asymmetric to fix a test failure in Java 7

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/Query.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/Query.java?rev=1305347&r1=1305346&r2=1305347&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/Query.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/Query.java
Mon Mar 26 13:29:49 2012
@@ -293,6 +293,8 @@ public class Query {
                 } else if (a == null) {
                     // TODO order by: nulls first, last, low or high?
                     comp = 1;
+                } else {
+                    comp = -1;
                 }
             } else {
                 comp = a.compareTo(b);



Mime
View raw message