incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r929229 - /incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/ConstructorDescriptorImpl.java
Date Tue, 30 Mar 2010 18:58:47 GMT
Author: simonetripodi
Date: Tue Mar 30 18:58:46 2010
New Revision: 929229

URL: http://svn.apache.org/viewvc?rev=929229&view=rev
Log:
added type argument to parameterDescriptors List
parameterDescriptors List can be final

Modified:
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/ConstructorDescriptorImpl.java

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/ConstructorDescriptorImpl.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/ConstructorDescriptorImpl.java?rev=929229&r1=929228&r2=929229&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/ConstructorDescriptorImpl.java
(original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/ConstructorDescriptorImpl.java
Tue Mar 30 18:58:46 2010
@@ -33,14 +33,14 @@ import org.apache.bval.model.Validation;
  */
 public class ConstructorDescriptorImpl extends ElementDescriptorImpl
       implements ConstructorDescriptor, ProcedureDescriptor {
-    private List<ParameterDescriptor> parameterDescriptors = new ArrayList();
+    private final List<ParameterDescriptor> parameterDescriptors = new ArrayList<ParameterDescriptor>();
     private boolean cascaded;
 
     protected ConstructorDescriptorImpl(MetaBean metaBean, Validation[] validations) {
         super(metaBean, validations);
     }
 
-    protected ConstructorDescriptorImpl(Class elementClass, Validation[] validations) {
+    protected ConstructorDescriptorImpl(Class<?> elementClass, Validation[] validations)
{
         super(elementClass, validations);
     }
 



Mime
View raw message