jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r792895 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
Date Fri, 10 Jul 2009 11:55:43 GMT
Author: mreutegg
Date: Fri Jul 10 11:55:43 2009
New Revision: 792895

URL: http://svn.apache.org/viewvc?rev=792895&view=rev
Log:
JCR-977: jcr:deref in xpath predicates
- remove obsolete check for STAR_NAME_TEST

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java?rev=792895&r1=792894&r2=792895&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
Fri Jul 10 11:55:43 2009
@@ -874,10 +874,7 @@
             boolean selectParent = true; 
             for (int i = steps.length - 2; i >= 0; i--) {
                 LocationStepQueryNode step = steps[i];
-                Name name = null;
-                if (!RelationQueryNode.STAR_NAME_TEST.equals(steps[i].getNameTest())) {
-                    name = steps[i].getNameTest();
-                }
+                Name name = steps[i].getNameTest();
                 if (i == steps.length - 2) {
                     if (step instanceof DerefQueryNode) {
                         query = createPredicateDeref(query, (DerefQueryNode) step, data);



Mime
View raw message