incubator-vxquery-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ti...@apache.org
Subject svn commit: r996198 - /incubator/vxquery/trunk/vxquery/src/main/java/org/apache/vxquery/runtime/types/InstanceOfIterator.java
Date Sat, 11 Sep 2010 19:23:53 GMT
Author: tillw
Date: Sat Sep 11 19:23:53 2010
New Revision: 996198

URL: http://svn.apache.org/viewvc?rev=996198&view=rev
Log:
added some intermediate variables

Modified:
    incubator/vxquery/trunk/vxquery/src/main/java/org/apache/vxquery/runtime/types/InstanceOfIterator.java

Modified: incubator/vxquery/trunk/vxquery/src/main/java/org/apache/vxquery/runtime/types/InstanceOfIterator.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/trunk/vxquery/src/main/java/org/apache/vxquery/runtime/types/InstanceOfIterator.java?rev=996198&r1=996197&r2=996198&view=diff
==============================================================================
--- incubator/vxquery/trunk/vxquery/src/main/java/org/apache/vxquery/runtime/types/InstanceOfIterator.java
(original)
+++ incubator/vxquery/trunk/vxquery/src/main/java/org/apache/vxquery/runtime/types/InstanceOfIterator.java
Sat Sep 11 19:23:53 2010
@@ -17,6 +17,7 @@
 package org.apache.vxquery.runtime.types;
 
 import org.apache.vxquery.datamodel.XDMValue;
+import org.apache.vxquery.datamodel.atomic.AtomicValueFactory;
 import org.apache.vxquery.exceptions.SystemException;
 import org.apache.vxquery.runtime.CallStackFrame;
 import org.apache.vxquery.runtime.RegisterAllocator;
@@ -36,7 +37,8 @@ public class InstanceOfIterator extends 
 
     @Override
     public Object evaluateEagerly(CallStackFrame frame) throws SystemException {
-        return frame.getRuntimeControlBlock().getAtomicValueFactory().createBoolean(
-                filter.accept((XDMValue) input.evaluateEagerly(frame)));
+        final AtomicValueFactory atomicValueFactory = frame.getRuntimeControlBlock().getAtomicValueFactory();
+        final boolean accept = filter.accept((XDMValue) input.evaluateEagerly(frame));
+        return atomicValueFactory.createBoolean(accept);
     }
 }
\ No newline at end of file



Mime
View raw message