mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix comment
This commit is contained in:
@@ -21,6 +21,7 @@ public class CglibUtil {
|
||||
* @param <T> 目标对象类型
|
||||
* @param source 源bean对象
|
||||
* @param targetClass 目标bean类,自动实例化此对象
|
||||
* @return 目标对象
|
||||
*/
|
||||
public static <T> T copy(Object source, Class<T> targetClass) {
|
||||
return copy(source, targetClass, null);
|
||||
@@ -34,6 +35,7 @@ public class CglibUtil {
|
||||
* @param source 源bean对象
|
||||
* @param targetClass 目标bean类,自动实例化此对象
|
||||
* @param converter 转换器,无需可传{@code null}
|
||||
* @return 目标对象
|
||||
*/
|
||||
public static <T> T copy(Object source, Class<T> targetClass, Converter converter) {
|
||||
final T target = ReflectUtil.newInstanceIfPossible(targetClass);
|
||||
|
Reference in New Issue
Block a user