BATCH-1813: fix cacheing in BeanWrapperFieldSetMapper

This commit is contained in:
Dave Syer
2012-07-17 09:23:28 +01:00
parent a723f22889
commit 91780bef1e

View File

@@ -282,9 +282,7 @@ public class BeanWrapperFieldSetMapper<T> extends DefaultPropertyEditorRegistrar
}
}
if (!propertiesMatched.containsKey(distanceKey)) {
propertiesMatched.putIfAbsent(distanceKey, new ConcurrentHashMap<String, String>(matches));
}
propertiesMatched.replace(distanceKey, new ConcurrentHashMap<String, String>(matches));
return properties;
}