incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r929703 - /incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java
Date Wed, 31 Mar 2010 20:02:23 GMT
Author: simonetripodi
Date: Wed Mar 31 20:02:22 2010
New Revision: 929703

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

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

Modified: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java?rev=929703&r1=929702&r2=929703&view=diff
==============================================================================
--- incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java (original)
+++ incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/DynamicMetaBean.java Wed
Mar 31 20:02:22 2010
@@ -22,6 +22,8 @@ import org.apache.bval.model.MetaBean;
  * Description: <br/>
  */
 final class DynamicMetaBean extends MetaBean {
+    private static final long serialVersionUID = 1L;
+
     private final MetaBeanFinder finder;
 
     public DynamicMetaBean(MetaBeanFinder finder) {
@@ -34,7 +36,7 @@ final class DynamicMetaBean extends Meta
      */
     @Override
     public MetaBean resolveMetaBean(Object bean) {
-        return bean instanceof Class ?
-                finder.findForClass((Class) bean) : finder.findForClass(bean.getClass());
+        return bean instanceof Class<?> ?
+                finder.findForClass((Class<?>) bean) : finder.findForClass(bean.getClass());
     }
 }



Mime
View raw message