Fix [cast] compiler warnings
This commit is contained in:
committed by
Chris Beams
parent
b0986049a3
commit
6c14eaad61
@@ -495,7 +495,7 @@ class PropertyDescriptorUtils {
|
||||
// copy all attributes (emulating behavior of private FeatureDescriptor#addTable)
|
||||
Enumeration<String> keys = source.attributeNames();
|
||||
while (keys.hasMoreElements()) {
|
||||
String key = (String)keys.nextElement();
|
||||
String key = keys.nextElement();
|
||||
target.setValue(key, source.getValue(key));
|
||||
}
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ public class CustomEditorConfigurer implements BeanFactoryPostProcessor, BeanCla
|
||||
else if (value instanceof String) {
|
||||
Class editorClass = ClassUtils.forName((String) value, this.beanClassLoader);
|
||||
Assert.isAssignable(PropertyEditor.class, editorClass);
|
||||
beanFactory.registerCustomEditor(requiredType, (Class<? extends PropertyEditor>) editorClass);
|
||||
beanFactory.registerCustomEditor(requiredType, editorClass);
|
||||
}
|
||||
else {
|
||||
throw new IllegalArgumentException("Mapped value [" + value + "] for custom editor key [" +
|
||||
|
||||
Reference in New Issue
Block a user