directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r413534 - /directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/BranchNode.java
Date Sun, 11 Jun 2006 21:29:47 GMT
Author: akarasulu
Date: Sun Jun 11 14:29:47 2006
New Revision: 413534

URL: http://svn.apache.org/viewvc?rev=413534&view=rev
Log:
reformated a bit

Modified:
    directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/BranchNode.java

Modified: directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/BranchNode.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/BranchNode.java?rev=413534&r1=413533&r2=413534&view=diff
==============================================================================
--- directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/BranchNode.java
(original)
+++ directory/branches/shared/optimization/ldap/src/main/java/org/apache/directory/shared/ldap/filter/BranchNode.java
Sun Jun 11 14:29:47 2006
@@ -331,34 +331,35 @@
      * @see org.apache.directory.shared.ldap.filter.ExprNode#accept(
      *      org.apache.directory.shared.ldap.filter.FilterVisitor)
      */
-    public void accept( FilterVisitor a_visitor )
+    public void accept( FilterVisitor visitor )
     {
-        if ( a_visitor.isPrefix() )
+        if ( visitor.isPrefix() )
         {
-            ArrayList l_children = a_visitor.getOrder( this, m_children );
+            ArrayList children = visitor.getOrder( this, m_children );
 
-            if ( a_visitor.canVisit( this ) )
+            if ( visitor.canVisit( this ) )
             {
-                a_visitor.visit( this );
+                visitor.visit( this );
             }
 
-            for ( int ii = 0; ii < l_children.size(); ii++ )
+            for ( int ii = 0; ii < children.size(); ii++ )
             {
-                ( ( ExprNode ) l_children.get( ii ) ).accept( a_visitor );
+                ( ( ExprNode ) children.get( ii ) ).accept( visitor );
             }
         }
         else
         {
-            ArrayList l_children = a_visitor.getOrder( this, m_children );
+            ArrayList children = visitor.getOrder( this, m_children );
 
-            for ( int ii = 0; ii < l_children.size(); ii++ )
+            for ( int ii = 0; ii < children.size(); ii++ )
             {
-                ( ( ExprNode ) l_children.get( ii ) ).accept( a_visitor );
+                ExprNode child = ( ExprNode ) children.get( ii );
+                child.accept( visitor );
             }
 
-            if ( a_visitor.canVisit( this ) )
+            if ( visitor.canVisit( this ) )
             {
-                a_visitor.visit( this );
+                visitor.visit( this );
             }
         }
     }



Mime
View raw message