incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1081815 - /incubator/bval/sandbox/lang3-work/bval-core/src/main/java/org/apache/bval/IntrospectorMetaBeanFactory.java
Date Tue, 15 Mar 2011 15:19:54 GMT
Author: mbenson
Date: Tue Mar 15 15:19:53 2011
New Revision: 1081815

URL: http://svn.apache.org/viewvc?rev=1081815&view=rev
Log:
only set MetaBean name if non-null

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=1081815&r1=1081814&r2=1081815&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
Tue Mar 15 15:19:53 2011
@@ -44,7 +44,7 @@ public class IntrospectorMetaBeanFactory
             return; // handle only, when local class exists
         }
         BeanInfo info = Introspector.getBeanInfo(meta.getBeanClass());
-        if (info.getBeanDescriptor() != null) {
+        if (meta.getName() == null && info.getBeanDescriptor() != null) {
             meta.setName(info.getBeanDescriptor().getName()); // (display?)name = simple
class name!
         }
         for (PropertyDescriptor pd : info.getPropertyDescriptors()) {



Mime
View raw message