Skip to content

Commit caf2096

Browse files
author
mgeipel
committed
fixed #44
1 parent e552d36 commit caf2096

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/culturegraph/mf/util/reflection/ObjectFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ public final Class<? extends O> getClass(final String name) {
9292
public final Map<String, Class<?>> getAttributes(final String classKey) {
9393
if (classes.containsKey(classKey)) {
9494
final Map<String, Class<?>> attributes = new HashMap<String, Class<?>>();
95-
for(Entry<String, Method> entry:classMethodMaps.get(classes.get(classKey)).entrySet()){
95+
final Set<Entry<String, Method>> entrySet = classMethodMaps.get(classes.get(classKey)).entrySet();
96+
for(Entry<String, Method> entry:entrySet ){
9697
attributes.put(entry.getKey(), entry.getValue().getParameterTypes()[0]);
97-
return attributes;
9898
}
99+
return attributes;
99100
}
100101
return Collections.emptyMap();
101102
}

0 commit comments

Comments
 (0)