Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BATCH-1813: fix cacheing in BeanWrapperFieldSetMapper

  • Loading branch information...
commit 91780bef1e5dda71a91331ecfdff5c2a818a484a 1 parent a723f22
@dsyer dsyer authored
View
4 ...-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/BeanWrapperFieldSetMapper.java
@@ -282,9 +282,7 @@ private Properties getBeanProperties(Object bean, Properties properties) {
}
}
- if (!propertiesMatched.containsKey(distanceKey)) {
- propertiesMatched.putIfAbsent(distanceKey, new ConcurrentHashMap<String, String>(matches));
- }
+ propertiesMatched.replace(distanceKey, new ConcurrentHashMap<String, String>(matches));
return properties;
}
Please sign in to comment.
Something went wrong with that request. Please try again.