directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r371753 - /directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/search/SearchRequest.java
Date Tue, 24 Jan 2006 00:49:09 GMT
Author: elecharny
Date: Mon Jan 23 16:49:06 2006
New Revision: 371753

URL: http://svn.apache.org/viewcvs?rev=371753&view=rev
Log:
The attributes ArrayList is now intialized in the constructor

Modified:
    directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/search/SearchRequest.java

Modified: directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/search/SearchRequest.java
URL: http://svn.apache.org/viewcvs/directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/search/SearchRequest.java?rev=371753&r1=371752&r2=371753&view=diff
==============================================================================
--- directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/search/SearchRequest.java
(original)
+++ directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/search/SearchRequest.java
Mon Jan 23 16:49:06 2006
@@ -96,6 +96,7 @@
         super( );
 
         currentFilter = null;
+        attributes = new BasicAttributes( true );
     }
 
     //~ Methods ------------------------------------------------------------------------------------
@@ -128,14 +129,6 @@
     public void addAttribute( LdapString attribute )
     {
         attributes.put( new BasicAttribute( StringTools.lowerCase( attribute.getString()
) ) );
-    }
-
-    /**
-     * Initialize the attributes list
-     */
-    public void initAttributes()
-    {
-        attributes = new BasicAttributes( true );
     }
 
     /**



Mime
View raw message