incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1022775 - /incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/IntrospectorMetaBeanFactory.java
Date Fri, 15 Oct 2010 00:04:58 GMT
Author: mbenson
Date: Fri Oct 15 00:04:57 2010
New Revision: 1022775

URL: http://svn.apache.org/viewvc?rev=1022775&view=rev
Log:
skip IndexedPropertyDescriptors

Modified:
    incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/IntrospectorMetaBeanFactory.java

Modified: incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/IntrospectorMetaBeanFactory.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/IntrospectorMetaBeanFactory.java?rev=1022775&r1=1022774&r2=1022775&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/IntrospectorMetaBeanFactory.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/IntrospectorMetaBeanFactory.java
Fri Oct 15 00:04:57 2010
@@ -20,6 +20,7 @@ import org.apache.bval.model.MetaBean;
 import org.apache.bval.model.MetaProperty;
 
 import java.beans.BeanInfo;
+import java.beans.IndexedPropertyDescriptor;
 import java.beans.Introspector;
 import java.beans.PropertyDescriptor;
 import java.lang.reflect.Method;
@@ -48,7 +49,7 @@ public final class IntrospectorMetaBeanF
                   info.getBeanDescriptor().getName()); // (display?)name = simple class name!
         }
         for (PropertyDescriptor pd : info.getPropertyDescriptors()) {
-            if (!pd.getName().equals("class")) { // except this one!
+            if (!(pd instanceof IndexedPropertyDescriptor || pd.getName().equals("class")))
{
                 MetaProperty metaProp = buildMetaProperty(pd);
                 meta.putProperty(pd.getName(), metaProp);
             }



Mime
View raw message