* persion * persion.name @@ -33,7 +33,7 @@ import java.util.Map; * person.friends[5].name * ['person']['friends'][5]['name'] *- * + * * @author Looly * @since 4.0.6 */ @@ -54,9 +54,9 @@ public class BeanPath implements Serializable{ *
* persion
* persion.name
@@ -64,7 +64,7 @@ public class BeanPath implements Serializable{
* person.friends[5].name
* ['person']['friends'][5]['name']
*
- *
+ *
* @param expression 表达式
* @return BeanPath
*/
@@ -74,7 +74,7 @@ public class BeanPath implements Serializable{
/**
* 构造
- *
+ *
* @param expression 表达式
*/
public BeanPath(String expression) {
@@ -83,7 +83,7 @@ public class BeanPath implements Serializable{
/**
* 获取Bean中对应表达式的值
- *
+ *
* @param bean Bean对象或Map或List等
* @return 值,如果对应值不存在,则返回null
*/
@@ -95,29 +95,29 @@ public class BeanPath implements Serializable{
* 设置表达式指定位置(或filed对应)的值* 1. 如果为List,如果下标不大于List长度,则替换原有值,否则追加值 * 2. 如果为数组,如果下标不大于数组长度,则替换原有值,否则追加值 *- * + * * @param bean Bean、Map或List * @param value 值 */ public void set(Object bean, Object value) { set(bean, this.patternParts, value); } - + /** * 设置表达式指定位置(或filed对应)的值
* 1. 如果为List,如果下标不大于List长度,则替换原有值,否则追加值 * 2. 如果为数组,如果下标不大于数组长度,则替换原有值,否则追加值 *- * + * * @param bean Bean、Map或List * @param patternParts 表达式块列表 * @param value 值 @@ -135,7 +135,7 @@ public class BeanPath implements Serializable{ // ------------------------------------------------------------------------------------------------------------------------------------- Private method start /** * 获取Bean中对应表达式的值 - * + * * @param patternParts 表达式分段列表 * @param bean Bean对象或Map或List等 * @param ignoreLast 是否忽略最后一个值,忽略最后一个值则用于set,否则用于read @@ -215,7 +215,7 @@ public class BeanPath implements Serializable{ /** * 初始化 - * + * * @param expression 表达式 */ private void init(String expression) { @@ -277,7 +277,7 @@ public class BeanPath implements Serializable{ /** * 对于非表达式去除单引号 - * + * * @param expression 表达式 * @return 表达式 */ diff --git a/hutool-core/src/main/java/cn/hutool/core/bean/copier/BeanCopier.java b/hutool-core/src/main/java/cn/hutool/core/bean/copier/BeanCopier.java index b2d375ba3..7d54e7a9c 100644 --- a/hutool-core/src/main/java/cn/hutool/core/bean/copier/BeanCopier.java +++ b/hutool-core/src/main/java/cn/hutool/core/bean/copier/BeanCopier.java @@ -25,7 +25,7 @@ import java.util.Map; * 3. Map 转 Bean * 4. Map 转 Map * - * + * * @author looly * * @param
@@ -33,7 +33,7 @@ import java.util.Comparator; * } * } * - * + * * 字段值按照顺序比较,如果某个字段返回非0结果,比较终止,使用{@code toComparison()}返回结果,后续比较忽略。 * *
@@ -52,7 +52,7 @@ import java.util.Comparator;
*/
public class CompareToBuilder implements Builder Compares two Fields can be private, thus Compares two Fields can be private, thus Compares two Fields can be private, thus Compares two Fields can be private, thus Appends to Appends to the Appends to the
* A registry of objects used by reflection methods to detect cyclical object references and avoid infinite loops.
@@ -380,7 +380,7 @@ public class HashCodeBuilder implements Builder
@@ -94,7 +94,7 @@ public class CompareToBuilder implements Builder
Objects via reflection.AccessibleObject.setAccessible
- * is used to bypass normal access control checks. This will fail under a
+ * is used to bypass normal access control checks. This will fail under a
* security manager unless the appropriate permissions are set.
@@ -126,7 +126,7 @@ public class CompareToBuilder implements Builder
Objects via reflection.AccessibleObject.setAccessible
- * is used to bypass normal access control checks. This will fail under a
+ * is used to bypass normal access control checks. This will fail under a
* security manager unless the appropriate permissions are set.
@@ -159,7 +159,7 @@ public class CompareToBuilder implements Builder
Objects via reflection.AccessibleObject.setAccessible
- * is used to bypass normal access control checks. This will fail under a
+ * is used to bypass normal access control checks. This will fail under a
* security manager unless the appropriate permissions are set.
@@ -192,7 +192,7 @@ public class CompareToBuilder implements Builder
Objects via reflection.AccessibleObject.setAccessible
- * is used to bypass normal access control checks. This will fail under a
+ * is used to bypass normal access control checks. This will fail under a
* security manager unless the appropriate permissions are set.
@@ -221,10 +221,10 @@ public class CompareToBuilder implements Builder
reflectionCompare(Object, Object, boolean, Class))
*/
public static int reflectionCompare(
- final Object lhs,
- final Object rhs,
- final boolean compareTransients,
- final Class> reflectUpToClass,
+ final Object lhs,
+ final Object rhs,
+ final boolean compareTransients,
+ final Class> reflectUpToClass,
final String... excludeFields) {
if (lhs == rhs) {
@@ -249,7 +249,7 @@ public class CompareToBuilder implements Builderbuilder the comparison of lhs
* to rhs using the fields defined in clazz.Class that defines fields to be compared
@@ -264,7 +264,7 @@ public class CompareToBuilder implements Builderbuilder the comparison of
@@ -312,7 +312,7 @@ public class CompareToBuilder implements Buildernull object is less than a non-null object
* lhs must either be an array or implement {@link Comparable}.builder the comparison of
* two shorts.
- *
+ *
* @param lhs left-hand value
* @param rhs right-hand value
* @return this - used to chain append calls
@@ -473,7 +473,7 @@ public class CompareToBuilder implements Builderbuilder the comparison of
* two bytes.
- *
+ *
* @param lhs left-hand value
* @param rhs right-hand value
* @return this - used to chain append calls
@@ -575,7 +575,7 @@ public class CompareToBuilder implements Builderbuilder the deep comparison of
* two Object arrays.builder has judged the "left-hand" side
* as less than, greater than, or equal to the "right-hand"
* side.
- *
+ *
* @return final comparison result
* @see #build()
*/
@@ -963,7 +963,7 @@ public class CompareToBuilder implements Builderbuilder has judged the "left-hand" side
* as less than, greater than, or equal to the "right-hand"
* side.
- *
+ *
* @return final comparison result as an Integer
* @see #toComparison()
* @since 3.0
diff --git a/hutool-core/src/main/java/cn/hutool/core/builder/HashCodeBuilder.java b/hutool-core/src/main/java/cn/hutool/core/builder/HashCodeBuilder.java
index 9991c7856..6ca13c243 100644
--- a/hutool-core/src/main/java/cn/hutool/core/builder/HashCodeBuilder.java
+++ b/hutool-core/src/main/java/cn/hutool/core/builder/HashCodeBuilder.java
@@ -85,17 +85,17 @@ import cn.hutool.core.util.ArrayUtil;
*/
public class HashCodeBuilder implements Buildernull
*/
public static int reflectionHashCode(final Object object, final boolean testTransients) {
- return reflectionHashCode(DEFAULT_INITIAL_VALUE, DEFAULT_MULTIPLIER_VALUE, object,
+ return reflectionHashCode(DEFAULT_INITIAL_VALUE, DEFAULT_MULTIPLIER_VALUE, object,
testTransients, null);
}
@@ -457,7 +457,7 @@ public class HashCodeBuilder implements Buildernull
*/
public static int reflectionHashCode(final Object object, final String... excludeFields) {
- return reflectionHashCode(DEFAULT_INITIAL_VALUE, DEFAULT_MULTIPLIER_VALUE, object, false,
+ return reflectionHashCode(DEFAULT_INITIAL_VALUE, DEFAULT_MULTIPLIER_VALUE, object, false,
null, excludeFields);
}
diff --git a/hutool-core/src/main/java/cn/hutool/core/builder/IDKey.java b/hutool-core/src/main/java/cn/hutool/core/builder/IDKey.java
index 40af0d8c4..e49ecd174 100644
--- a/hutool-core/src/main/java/cn/hutool/core/builder/IDKey.java
+++ b/hutool-core/src/main/java/cn/hutool/core/builder/IDKey.java
@@ -13,13 +13,13 @@ import java.io.Serializable;
*/
final class IDKey implements Serializable{
private static final long serialVersionUID = 1L;
-
+
private final Object value;
private final int id;
/**
* 构造
- *
+ *
* @param obj 计算唯一ID的对象
*/
public IDKey(final Object obj) {
@@ -32,7 +32,7 @@ final class IDKey implements Serializable{
/**
* returns hashcode - i.e. the system identity hashcode.
- *
+ *
* @return the hashcode
*/
@Override
@@ -42,7 +42,7 @@ final class IDKey implements Serializable{
/**
* checks if instances are equal
- *
+ *
* @param other The other object to compare to
* @return if the instances are for the same object
*/
diff --git a/hutool-core/src/main/java/cn/hutool/core/builder/package-info.java b/hutool-core/src/main/java/cn/hutool/core/builder/package-info.java
index db54a59b3..800a02855 100644
--- a/hutool-core/src/main/java/cn/hutool/core/builder/package-info.java
+++ b/hutool-core/src/main/java/cn/hutool/core/builder/package-info.java
@@ -1,7 +1,7 @@
/**
* 建造者工具
* 用于建造特定对象或结果
- *
+ *
* @author looly
*
*/
diff --git a/hutool-core/src/main/java/cn/hutool/core/clone/CloneRuntimeException.java b/hutool-core/src/main/java/cn/hutool/core/clone/CloneRuntimeException.java
index 9f5744e21..7f70e2813 100644
--- a/hutool-core/src/main/java/cn/hutool/core/clone/CloneRuntimeException.java
+++ b/hutool-core/src/main/java/cn/hutool/core/clone/CloneRuntimeException.java
@@ -13,19 +13,19 @@ public class CloneRuntimeException extends RuntimeException{
public CloneRuntimeException(Throwable e) {
super(ExceptionUtil.getMessage(e), e);
}
-
+
public CloneRuntimeException(String message) {
super(message);
}
-
+
public CloneRuntimeException(String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params));
}
-
+
public CloneRuntimeException(String message, Throwable throwable) {
super(message, throwable);
}
-
+
public CloneRuntimeException(Throwable throwable, String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params), throwable);
}