OPEN - issue BATCH-1108: Add composite ItemWriter/Processor based on Classifier

Move test case over from core as well
This commit is contained in:
dsyer
2009-03-03 12:23:59 +00:00
parent 998f6f592e
commit 9fa730100c
3 changed files with 33 additions and 21 deletions

View File

@@ -74,12 +74,8 @@ public class DefaultPropertyEditorRegistrar implements PropertyEditorRegistrar {
throw new IllegalArgumentException("Invalid key [" + key
+ "] for custom editor: needs to be Class or String.");
}
Object value = entry.getValue();
if (!(value instanceof PropertyEditor)) {
throw new IllegalArgumentException("Mapped value [" + value + "] for custom editor key [" + key
+ "] is not of required type [" + PropertyEditor.class.getName() + "]");
}
this.customEditors.put(requiredType, (PropertyEditor) value);
PropertyEditor value = entry.getValue();
this.customEditors.put(requiredType, value);
}
}