incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1069152 - /incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java
Date Wed, 09 Feb 2011 22:40:00 GMT
Author: mbenson
Date: Wed Feb  9 22:40:00 2011
New Revision: 1069152

URL: http://svn.apache.org/viewvc?rev=1069152&view=rev
Log:
searching for a single property by name isn't terribly efficient

Modified:
    incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java

Modified: incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java?rev=1069152&r1=1069151&r2=1069152&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java
Wed Feb  9 22:40:00 2011
@@ -288,8 +288,11 @@ final class DynamicMetaGraphManagerImpl 
                                 new AppendValidationToMeta(result));
                         }
                     }
-                    for (String propertyName : mergeProperties) {
-                        MetaProperty property = result.getProperty(propertyName);
+                    for (MetaProperty property : result.getProperties()) {
+                        String propertyName = property.getName();
+                        if (!mergeProperties.contains(propertyName)) {
+                            continue;
+                        }
                         Collection<Annotation> constraints =
                             property.getFeature(DYNAMIC_CONSTRAINT_COLLECTION, EMPTY_DYNAMIC_ANNOTATIONS);
                         for (Annotation constraint : constraints) {



Mime
View raw message