incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r929177 - /incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ElementDescriptorImpl.java
Date Tue, 30 Mar 2010 15:38:47 GMT
Author: simonetripodi
Date: Tue Mar 30 15:38:46 2010
New Revision: 929177

URL: http://svn.apache.org/viewvc?rev=929177&view=rev
Log:
added ? parameter to Class type

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

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ElementDescriptorImpl.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ElementDescriptorImpl.java?rev=929177&r1=929176&r2=929177&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ElementDescriptorImpl.java
(original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ElementDescriptorImpl.java
Tue Mar 30 15:38:46 2010
@@ -35,7 +35,7 @@ import java.util.Set;
  */
 public abstract class ElementDescriptorImpl implements ElementDescriptor {
     protected final MetaBean metaBean;
-    protected final Class elementClass;
+    protected final Class<?> elementClass;
     private Set<ConstraintDescriptor<?>> constraintDescriptors;
 
     protected ElementDescriptorImpl(MetaBean metaBean,
@@ -45,14 +45,14 @@ public abstract class ElementDescriptorI
         createConstraintDescriptors(validations);
     }
 
-    protected ElementDescriptorImpl(Class elementClass, Validation[] validations) {
+    protected ElementDescriptorImpl(Class<?> elementClass, Validation[] validations)
{
         this.metaBean = null;
         this.elementClass = elementClass;
         createConstraintDescriptors(validations);
     }
 
     /** @return Statically defined returned type. */
-    public Class getElementClass() {
+    public Class<?> getElementClass() {
         return elementClass;
     }
 
@@ -70,7 +70,7 @@ public abstract class ElementDescriptorI
     }
 
     private void createConstraintDescriptors(Validation[] validations) {
-        final Set<ConstraintDescriptor<?>> cds = new HashSet(validations.length);
+        final Set<ConstraintDescriptor<?>> cds = new HashSet<ConstraintDescriptor<?>>(validations.length);
         for (Validation validation : validations) {
             if (validation instanceof ConstraintValidation) {
                 ConstraintValidation cval = (ConstraintValidation) validation;



Mime
View raw message