Skip to content

Commit 4ca7025

Browse files
committed
Backport polishing
1 parent c892ce5 commit 4ca7025

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-core/src/main/java/org/springframework/util/ObjectUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -911,10 +911,10 @@ public static String nullSafeToString(@Nullable short[] array) {
911911
* <p>Returns:
912912
* <ul>
913913
* <li>{@code "null"} if {@code obj} is {@code null}</li>
914-
* <li>{@code"Optional.empty"} if {@code obj} is an empty {@link Optional}</li>
915-
* <li>{@code"Optional[<concise-string>]"} if {@code obj} is a non-empty {@code Optional},
916-
* where {@code <concise-string>} is the result of invoking {@link #nullSafeConciseToString}
917-
* on the object contained in the {@code Optional}</li>
914+
* <li>{@code "Optional.empty"} if {@code obj} is an empty {@link Optional}</li>
915+
* <li>{@code "Optional[<concise-string>]"} if {@code obj} is a non-empty {@code Optional},
916+
* where {@code <concise-string>} is the result of invoking this method on the object
917+
* contained in the {@code Optional}</li>
918918
* <li>{@code "{}"} if {@code obj} is an empty array</li>
919919
* <li>{@code "{...}"} if {@code obj} is a {@link Map} or a non-empty array</li>
920920
* <li>{@code "[...]"} if {@code obj} is a {@link Collection}</li>

0 commit comments

Comments
 (0)