File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
spring-core/src/main/java/org/springframework/util Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -938,6 +938,10 @@ public static String nullSafeToString(@Nullable short[] array) {
938
938
* <li>{@code"Optional[<concise-string>]"} if {@code obj} is a non-empty {@code Optional},
939
939
* where {@code <concise-string>} is the result of invoking {@link #nullSafeConciseToString}
940
940
* on the object contained in the {@code Optional}</li>
941
+ * <li>{@code "{}"} if {@code obj} is an empty array or {@link Map}</li>
942
+ * <li>{@code "{...}"} if {@code obj} is a non-empty array or {@link Map}</li>
943
+ * <li>{@code "[]"} if {@code obj} is an empty {@link Collection}</li>
944
+ * <li>{@code "[...]"} if {@code obj} is a non-empty {@link Collection}</li>
941
945
* <li>{@linkplain Class#getName() Class name} if {@code obj} is a {@link Class}</li>
942
946
* <li>{@linkplain Charset#name() Charset name} if {@code obj} is a {@link Charset}</li>
943
947
* <li>{@linkplain TimeZone#getID() TimeZone ID} if {@code obj} is a {@link TimeZone}</li>
You can’t perform that action at this time.
0 commit comments