Skip to content

Commit

Permalink
inefficient use of .properties when only keys are needed. .properties…
Browse files Browse the repository at this point in the history
… makes a value call on each property
  • Loading branch information
codeconsole committed Jun 2, 2019
1 parent fa276f0 commit 98053e6
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -61,7 +61,8 @@ class ReflectionEntityCoercion {
}
if (!cachedProps.containsKey(clazz)) {
Map<String, PropertyDescriptor> props = [:]
for (String property in p.properties.keySet()) {
List<String> keySet = p.getMetaPropertyValues().collect { it.name }
for (String property : keySet) {
if (!(property in ['class', 'metaClass']) && !(property.startsWith('$') || property.startsWith('_'))) {
def descriptor = getPropertyDescriptorFor(clazz, property, defaultIndexed)
// XXX: This does not work. If it is Groovy bug, it's really nasty!
Expand Down

0 comments on commit 98053e6

Please sign in to comment.