mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix comment
This commit is contained in:
parent
7674fa6c57
commit
9d3d2f9ed4
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user