Browse Source

fix comment

Looly 5 years ago
parent
commit
b268ddb540
1 changed files with 4 additions and 4 deletions
  1. 4 4
      hutool-core/src/main/java/cn/hutool/core/bean/BeanUtil.java

+ 4 - 4
hutool-core/src/main/java/cn/hutool/core/bean/BeanUtil.java

@@ -166,17 +166,17 @@ public class BeanUtil {
 	 * @since 3.1.2
 	 */
 	public static BeanDesc getBeanDesc(Class<?> clazz) {
-		return BeanDescCache.INSTANCE.getBeanDesc(clazz, ()-> new BeanDesc(clazz));
+		return BeanDescCache.INSTANCE.getBeanDesc(clazz, () -> new BeanDesc(clazz));
 	}
 
 	/**
 	 * 遍历Bean的属性
 	 *
-	 * @param clazz Bean类
+	 * @param clazz  Bean类
 	 * @param action 每个元素的处理类
 	 * @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);
 	}
 
@@ -211,7 +211,7 @@ public class BeanUtil {
 	 * @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));
 	}
 
 	/**