1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
45
45
* Static convenience methods for JavaBeans: for instantiating beans,
46
46
* checking bean property types, copying bean properties, etc.
47
47
*
48
- * <p>Mainly for use within the framework, but to some degree also
49
- * useful for application classes.
48
+ * <p>Mainly for internal use within the framework, but to some degree also
49
+ * useful for application classes. Consider
50
+ * <a href="https://commons.apache.org/proper/commons-beanutils/">Apache Commons BeanUtils</a>,
51
+ * <a href="https://hotelsdotcom.github.io/bull/">BULL - Bean Utils Light Library</a>,
52
+ * or similar third-party frameworks for more comprehensive bean utilities.
50
53
*
51
54
* @author Rod Johnson
52
55
* @author Juergen Hoeller
@@ -432,7 +435,8 @@ public static PropertyEditor findEditorByConvention(Class<?> targetType) {
432
435
return null ;
433
436
}
434
437
}
435
- String editorName = targetType .getName () + "Editor" ;
438
+ String targetTypeName = targetType .getName ();
439
+ String editorName = targetTypeName + "Editor" ;
436
440
try {
437
441
Class <?> editorClass = cl .loadClass (editorName );
438
442
if (!PropertyEditor .class .isAssignableFrom (editorClass )) {
@@ -448,7 +452,7 @@ public static PropertyEditor findEditorByConvention(Class<?> targetType) {
448
452
catch (ClassNotFoundException ex ) {
449
453
if (logger .isDebugEnabled ()) {
450
454
logger .debug ("No property editor [" + editorName + "] found for type " +
451
- targetType . getName () + " according to 'Editor' suffix convention" );
455
+ targetTypeName + " according to 'Editor' suffix convention" );
452
456
}
453
457
unknownEditorTypes .add (targetType );
454
458
return null ;
0 commit comments