File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
spring-core/src/main/java/org/springframework/util Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ public abstract class ObjectUtils {
70
70
private static final String ARRAY_ELEMENT_SEPARATOR = ", " ;
71
71
private static final Object [] EMPTY_OBJECT_ARRAY = new Object [0 ];
72
72
private static final String NON_EMPTY_ARRAY = ARRAY_START + "..." + ARRAY_END ;
73
- private static final String NON_EMPTY_COLLECTION = "[...]" ;
73
+ private static final String COLLECTION = "[...]" ;
74
+ private static final String MAP = NON_EMPTY_ARRAY ;
74
75
75
76
76
77
/**
@@ -952,11 +953,10 @@ public static String nullSafeConciseToString(@Nullable Object obj) {
952
953
return (Array .getLength (obj ) == 0 ? EMPTY_ARRAY : NON_EMPTY_ARRAY );
953
954
}
954
955
if (obj instanceof Collection ) {
955
- return NON_EMPTY_COLLECTION ;
956
+ return COLLECTION ;
956
957
}
957
958
if (obj instanceof Map ) {
958
- // NON_EMPTY_ARRAY is also used for maps.
959
- return NON_EMPTY_ARRAY ;
959
+ return MAP ;
960
960
}
961
961
if (obj instanceof Class <?> clazz ) {
962
962
return clazz .getName ();
You can’t perform that action at this time.
0 commit comments