Ensure code compiles with Eclipse JDT

This commit is contained in:
Sam Brannen
2016-07-05 18:49:43 +02:00
parent 1391248ea6
commit 2bae0613a3

View File

@@ -129,7 +129,8 @@ public class YamlMapFactoryBean extends YamlProcessor implements FactoryBean<Map
Object value = entry.getValue();
Object existing = output.get(key);
if (value instanceof Map && existing instanceof Map) {
Map<String, Object> result = new LinkedHashMap<>((Map) existing);
// Inner cast required by Eclipse IDE.
Map<String, Object> result = new LinkedHashMap<>((Map<String, Object>) existing);
merge(result, (Map) value);
output.put(key, result);
}