commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r556965 - /jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java
Date Tue, 17 Jul 2007 16:38:33 GMT
Author: mbenson
Date: Tue Jul 17 09:38:32 2007
New Revision: 556965

URL: http://svn.apache.org/viewvc?view=rev&rev=556965
Log:
trailing ws

Modified:
    jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java

Modified: jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java?view=diff&rev=556965&r1=556964&r2=556965
==============================================================================
--- jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java
(original)
+++ jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java
Tue Jul 17 09:38:32 2007
@@ -16,7 +16,6 @@
  */
 package org.apache.commons.jxpath.ri;
 
-
 import java.lang.ref.SoftReference;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -62,17 +61,17 @@
  * @version $Revision$ $Date$
  */
 public class JXPathContextReferenceImpl extends JXPathContext {
-    
+
     /**
-     * Change this to <code>false</code> to disable soft caching of 
-     * CompiledExpressions. 
+     * Change this to <code>false</code> to disable soft caching of
+     * CompiledExpressions.
      */
     public static final boolean USE_SOFT_CACHE = true;
-    
+
     private static final Compiler COMPILER = new TreeCompiler();
     private static Map compiled = new HashMap();
     private static int cleanupCount = 0;
-    
+
     private static Vector nodeFactories = new Vector();
     private static NodePointerFactory nodeFactoryArray[] = null;
     static {
@@ -112,14 +111,14 @@
 
     private Pointer rootPointer;
     private Pointer contextPointer;
-    
+
     protected NamespaceResolver namespaceResolver;
 
     // The frequency of the cache cleanup
     private static final int CLEANUP_THRESHOLD = 500;
 
     protected JXPathContextReferenceImpl(JXPathContext parentContext,
-                                         Object contextBean) 
+                                         Object contextBean)
     {
         this(parentContext, contextBean, null);
     }
@@ -127,14 +126,14 @@
     public JXPathContextReferenceImpl(
         JXPathContext parentContext,
         Object contextBean,
-        Pointer contextPointer) 
+        Pointer contextPointer)
     {
         super(parentContext, contextBean);
 
         synchronized (nodeFactories) {
             createNodeFactoryArray();
         }
-                
+
         if (contextPointer != null) {
             this.contextPointer = contextPointer;
             this.rootPointer =
@@ -151,7 +150,7 @@
                     getLocale());
             this.rootPointer = this.contextPointer;
         }
-        
+
         NamespaceResolver parentNR = null;
         if (parentContext instanceof JXPathContextReferenceImpl) {
             parentNR = ((JXPathContextReferenceImpl) parentContext).getNamespaceResolver();
@@ -194,13 +193,13 @@
 
     /**
      * Returns a static instance of TreeCompiler.
-     * 
+     *
      * Override this to return an aternate compiler.
      */
     protected Compiler getCompiler() {
         return COMPILER;
     }
-    
+
     protected CompiledExpression compilePath(String xpath) {
         return new JXPathCompiledExpression(xpath, compileExpression(xpath));
     }
@@ -286,7 +285,7 @@
 //            }
 //            return
 //        }
-        
+
         return getValue(xpath, expression);
     }
 
@@ -295,12 +294,12 @@
 //        if (node == null) {
 //            return null;
 //        }
-//        
+//
 //        List vars = expression.getUsedVariables();
 //        if (vars != null) {
 //            return null;
 //        }
-//        
+//
 //        return node;
 //    }
 
@@ -309,14 +308,14 @@
 //            return bean;
 //        }
 //        if (bean instanceof Node) {
-//            return (Node)bean;            
+//            return (Node)bean;
 //        }
-//        
+//
 //        if (bean instanceof Container) {
 //            bean = ((Container)bean).getValue();
 //            return getNativeContextNode(bean);
 //        }
-//        
+//
 //        return null;
 //    }
 
@@ -348,7 +347,7 @@
                 // is going to have isActual == false, but its parent,
                 // which is a non-node pointer identifying the bean property,
                 // will return isActual() == true.
-                NodePointer parent = 
+                NodePointer parent =
                     ((NodePointer) result).getImmediateParentPointer();
                 if (parent == null
                     || !parent.isContainer()
@@ -471,7 +470,7 @@
     public Pointer createPathAndSetValue(
         String xpath,
         Expression expr,
-        Object value) 
+        Object value)
     {
         try {
             return setValue(xpath, expr, value, true);
@@ -487,7 +486,7 @@
         String xpath,
         Expression expr,
         Object value,
-        boolean create) 
+        boolean create)
     {
         Object result = expr.computeValue(getEvalContext());
         Pointer pointer = null;
@@ -503,7 +502,7 @@
             if (create) {
                 checkSimplePath(expr);
             }
-            
+
             // This should never happen
             throw new JXPathException("Cannot set value for xpath: " + xpath);
         }
@@ -599,7 +598,7 @@
         }
         return new JXPathContextReferenceImpl(this, contextBean, pointer);
     }
-    
+
     public Pointer getContextPointer() {
         return contextPointer;
     }
@@ -660,14 +659,14 @@
         throw new JXPathFunctionNotFoundException(
             "Undefined function: " + functionName.toString());
     }
-    
+
     public void registerNamespace(String prefix, String namespaceURI) {
-        if (namespaceResolver.isSealed()) {            
+        if (namespaceResolver.isSealed()) {
             namespaceResolver = (NamespaceResolver) namespaceResolver.clone();
         }
         namespaceResolver.registerNamespace(prefix, namespaceURI);
     }
-    
+
     public String getNamespaceURI(String prefix) {
         return namespaceResolver.getNamespaceURI(prefix);
     }
@@ -686,7 +685,7 @@
         }
         namespaceResolver.setNamespaceContextPointer((NodePointer) pointer);
     }
-    
+
     public Pointer getNamespaceContextPointer() {
         return namespaceResolver.getNamespaceContextPointer();
     }
@@ -695,14 +694,14 @@
         namespaceResolver.seal();
         return namespaceResolver;
     }
-    
+
     /**
      * Checks if existenceCheckClass exists on the class path. If so, allocates
      * an instance of the specified class, otherwise returns null.
      */
     public static Object allocateConditionally(
             String className,
-            String existenceCheckClassName) 
+            String existenceCheckClassName)
     {
         try {
             try {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message