directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r414631 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedure.java
Date Thu, 15 Jun 2006 16:26:15 GMT
Author: ersiner
Date: Thu Jun 15 09:26:14 2006
New Revision: 414631

URL: http://svn.apache.org/viewvc?rev=414631&view=rev
Log:
Initialize parameter list of Stored Procedure bean with an empty ArrayList.

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedure.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedure.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedure.java?rev=414631&r1=414630&r2=414631&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedure.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedure.java
Thu Jun 15 09:26:14 2006
@@ -44,7 +44,7 @@
 
     private byte[] procedure;
 
-    private ArrayList parameters;
+    private ArrayList parameters = new ArrayList();
 
     private transient StoredProcedureParameter currentParameter;
     
@@ -95,11 +95,6 @@
 
     public void addParameter( StoredProcedureParameter parameter )
     {
-        if ( parameters == null )
-        {
-            parameters = new ArrayList();
-        }
-
         parameters.add( parameter );
     }
 



Mime
View raw message