incubator-bval-commits mailing list archives

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

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

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

Modified: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/MetaProperty.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/MetaProperty.java?rev=929673&r1=929672&r2=929673&view=diff
==============================================================================
--- incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/MetaProperty.java (original)
+++ incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/model/MetaProperty.java Wed
Mar 31 19:28:40 2010
@@ -32,6 +32,8 @@ import java.lang.reflect.Type;
  */
 public class MetaProperty extends FeaturesCapable
       implements Cloneable, Features.Property {
+    private static final long serialVersionUID = 1L;
+
     private String name;
 
     private Type type;
@@ -66,8 +68,8 @@ public class MetaProperty extends Featur
     }
 
     private Class<?> getTypeClass(Type rawType) {
-        if (rawType instanceof Class) {
-            return (Class) rawType;
+        if (rawType instanceof Class<?>) {
+            return (Class<?>) rawType;
         } else if (rawType instanceof ParameterizedType) {
             return getTypeClass(((ParameterizedType) rawType).getRawType()); // recursion!
         } else if(rawType instanceof DynaType) {



Mime
View raw message