mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix comment
This commit is contained in:
@@ -166,7 +166,7 @@ public class BeanUtil {
|
|||||||
* @since 3.1.2
|
* @since 3.1.2
|
||||||
*/
|
*/
|
||||||
public static BeanDesc getBeanDesc(Class<?> clazz) {
|
public static BeanDesc getBeanDesc(Class<?> clazz) {
|
||||||
return BeanDescCache.INSTANCE.getBeanDesc(clazz, ()-> new BeanDesc(clazz));
|
return BeanDescCache.INSTANCE.getBeanDesc(clazz, () -> new BeanDesc(clazz));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -176,7 +176,7 @@ public class BeanUtil {
|
|||||||
* @param action 每个元素的处理类
|
* @param action 每个元素的处理类
|
||||||
* @since 5.4.2
|
* @since 5.4.2
|
||||||
*/
|
*/
|
||||||
public static void descForEach(Class<?> clazz, Consumer<? super PropDesc> action){
|
public static void descForEach(Class<?> clazz, Consumer<? super PropDesc> action) {
|
||||||
getBeanDesc(clazz).getProps().forEach(action);
|
getBeanDesc(clazz).getProps().forEach(action);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -211,7 +211,7 @@ public class BeanUtil {
|
|||||||
* @throws BeanException 获取属性异常
|
* @throws BeanException 获取属性异常
|
||||||
*/
|
*/
|
||||||
public static Map<String, PropertyDescriptor> getPropertyDescriptorMap(Class<?> clazz, boolean ignoreCase) throws BeanException {
|
public static Map<String, PropertyDescriptor> getPropertyDescriptorMap(Class<?> clazz, boolean ignoreCase) throws BeanException {
|
||||||
return BeanInfoCache.INSTANCE.getPropertyDescriptorMap(clazz, ignoreCase, ()-> internalGetPropertyDescriptorMap(clazz, ignoreCase));
|
return BeanInfoCache.INSTANCE.getPropertyDescriptorMap(clazz, ignoreCase, () -> internalGetPropertyDescriptorMap(clazz, ignoreCase));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user