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 <T> 目标对象类型
|
||||||
* @param source 源bean对象
|
* @param source 源bean对象
|
||||||
* @param targetClass 目标bean类,自动实例化此对象
|
* @param targetClass 目标bean类,自动实例化此对象
|
||||||
|
* @return 目标对象
|
||||||
*/
|
*/
|
||||||
public static <T> T copy(Object source, Class<T> targetClass) {
|
public static <T> T copy(Object source, Class<T> targetClass) {
|
||||||
return copy(source, targetClass, null);
|
return copy(source, targetClass, null);
|
||||||
@@ -34,6 +35,7 @@ public class CglibUtil {
|
|||||||
* @param source 源bean对象
|
* @param source 源bean对象
|
||||||
* @param targetClass 目标bean类,自动实例化此对象
|
* @param targetClass 目标bean类,自动实例化此对象
|
||||||
* @param converter 转换器,无需可传{@code null}
|
* @param converter 转换器,无需可传{@code null}
|
||||||
|
* @return 目标对象
|
||||||
*/
|
*/
|
||||||
public static <T> T copy(Object source, Class<T> targetClass, Converter converter) {
|
public static <T> T copy(Object source, Class<T> targetClass, Converter converter) {
|
||||||
final T target = ReflectUtil.newInstanceIfPossible(targetClass);
|
final T target = ReflectUtil.newInstanceIfPossible(targetClass);
|
||||||
@@ -77,7 +79,7 @@ public class CglibUtil {
|
|||||||
* @param bean Bean对象
|
* @param bean Bean对象
|
||||||
* @return {@link BeanMap}
|
* @return {@link BeanMap}
|
||||||
*/
|
*/
|
||||||
public static BeanMap toMap(Object bean){
|
public static BeanMap toMap(Object bean) {
|
||||||
return BeanMap.create(bean);
|
return BeanMap.create(bean);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user