incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r929695 - in /incubator/bval/trunk/bval-core/src/main/java/org/apache/bval: MetaBeanFinder.java MetaBeanManager.java
Date Wed, 31 Mar 2010 19:52:22 GMT
Author: simonetripodi
Date: Wed Mar 31 19:52:21 2010
New Revision: 929695

URL: http://svn.apache.org/viewvc?rev=929695&view=rev
Log:
added generics parameters

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

Modified: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanFinder.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanFinder.java?rev=929695&r1=929694&r2=929695&view=diff
==============================================================================
--- incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanFinder.java (original)
+++ incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanFinder.java Wed Mar
31 19:52:21 2010
@@ -40,7 +40,7 @@ public interface MetaBeanFinder {
      * @param clazz - bean class
      * @return BeanInfo (never null)
      */
-    MetaBean findForClass(Class clazz);
+    MetaBean findForClass(Class<?> clazz);
 
     /**
      * @return all MetaBeans for classes that have a xml descriptor:

Modified: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanManager.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanManager.java?rev=929695&r1=929694&r2=929695&view=diff
==============================================================================
--- incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanManager.java (original)
+++ incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/MetaBeanManager.java Wed
Mar 31 19:52:21 2010
@@ -143,7 +143,7 @@ public class MetaBeanManager implements 
         }
     }
 
-    public MetaBean findForClass(Class clazz) {
+    public MetaBean findForClass(Class<?> clazz) {
         if (clazz == null) return null;
         MetaBean beanInfo = cache.findForClass(clazz);
         if (beanInfo != null) return beanInfo;
@@ -169,7 +169,7 @@ public class MetaBeanManager implements 
             if (beanRef != null) {
                 prop.setMetaBean(findForId(beanRef));
             } else {
-                Class beanType = prop.getFeature(REF_BEAN_TYPE);
+                Class<?> beanType = prop.getFeature(REF_BEAN_TYPE);
                 if (beanType != null) {
                     prop.setMetaBean(findForClass(beanType));
                 } // dynamic type resolution:



Mime
View raw message