jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1487408 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/QueryResultImpl.java
Date Wed, 29 May 2013 08:54:01 GMT
Author: thomasm
Date: Wed May 29 08:54:00 2013
New Revision: 1487408

URL: http://svn.apache.org/r1487408
Log:
OAK-28 Query implementation (make fields private where possible)

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/QueryResultImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/QueryResultImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/QueryResultImpl.java?rev=1487408&r1=1487407&r2=1487408&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/QueryResultImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/QueryResultImpl.java
Wed May 29 08:54:00 2013
@@ -60,11 +60,12 @@ public class QueryResultImpl implements 
      */
     private static final int PREFETCH_TIMEOUT = 100;
 
-    private final SessionContext sessionContext;
-    final SessionDelegate sessionDelegate;
     final Result result;
-    final String pathFilter;
 
+    private final SessionContext sessionContext;
+    private final SessionDelegate sessionDelegate;
+    private final String pathFilter;
+    
     public QueryResultImpl(SessionContext sessionContext, Result result) {
         this.sessionContext = sessionContext;
         this.sessionDelegate = sessionContext.getSessionDelegate();
@@ -240,9 +241,8 @@ public class QueryResultImpl implements 
     Value createValue(PropertyValue value) {
         if (value == null) {
             return null;
-        } else {
-            return ValueFactoryImpl.createValue(value, sessionContext);
         }
+        return ValueFactoryImpl.createValue(value, sessionContext);
     }
 
 }



Mime
View raw message