incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r929555 - /incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodDescriptorImpl.java
Date Wed, 31 Mar 2010 14:46:30 GMT
Author: simonetripodi
Date: Wed Mar 31 14:46:29 2010
New Revision: 929555

URL: http://svn.apache.org/viewvc?rev=929555&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/MethodDescriptorImpl.java

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



Mime
View raw message