incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r929670 - /incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/DynaTypeEnum.java
Date Wed, 31 Mar 2010 19:25:01 GMT
Author: simonetripodi
Date: Wed Mar 31 19:25:01 2010
New Revision: 929670

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

Modified:
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/DynaTypeEnum.java

Modified: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/DynaTypeEnum.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/DynaTypeEnum.java?rev=929670&r1=929669&r2=929670&view=diff
==============================================================================
--- incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/DynaTypeEnum.java (original)
+++ incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/DynaTypeEnum.java Wed
Mar 31 19:25:01 2010
@@ -24,14 +24,14 @@ package org.apache.bval.model;
  * Copyright: Agimatec GmbH
  */
 public class DynaTypeEnum implements DynaType {
-    private final Class enumClass;
+    private final Class<?> enumClass;
     private Value[] enumConstants;
 
-    public DynaTypeEnum(Class enumClass) {
+    public DynaTypeEnum(Class<?> enumClass) {
         this.enumClass = enumClass;
     }
 
-    public DynaTypeEnum(Class enumClass, String... names) {
+    public DynaTypeEnum(Class<?> enumClass, String... names) {
         this.enumClass = enumClass;
         setEnumNames(names);
     }
@@ -48,7 +48,7 @@ public class DynaTypeEnum implements Dyn
         return enumClass.getName();
     }
 
-    public Class getRawType() {
+    public Class<?> getRawType() {
         return enumClass;
     }
 
@@ -66,7 +66,7 @@ public class DynaTypeEnum implements Dyn
         return enumConstants;
     }
 
-    public boolean isAssignableFrom(Class cls) {
+    public boolean isAssignableFrom(Class<?> cls) {
         return enumClass.isAssignableFrom(cls);
     }
 



Mime
View raw message