fix comment

This commit is contained in:
Looly 2020-11-16 18:05:30 +08:00
parent 26c42cc1c3
commit b268ddb540

View File

@ -166,17 +166,17 @@ 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));
} }
/** /**
* 遍历Bean的属性 * 遍历Bean的属性
* *
* @param clazz Bean类 * @param clazz Bean类
* @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));
} }
/** /**