From 2ada2b77f65ea0c98ee6cdef2fa157c8b0eaa323 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 6 Jul 2023 12:26:47 +0200 Subject: [PATCH] Update Javadoc for ObjectUtils.nullSafeConciseToString() See gh-30811 --- .../src/main/java/org/springframework/util/ObjectUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-core/src/main/java/org/springframework/util/ObjectUtils.java b/spring-core/src/main/java/org/springframework/util/ObjectUtils.java index 830b8d4e191..4475152488e 100644 --- a/spring-core/src/main/java/org/springframework/util/ObjectUtils.java +++ b/spring-core/src/main/java/org/springframework/util/ObjectUtils.java @@ -938,6 +938,10 @@ public abstract class ObjectUtils { *
  • {@code"Optional[]"} if {@code obj} is a non-empty {@code Optional}, * where {@code } is the result of invoking {@link #nullSafeConciseToString} * on the object contained in the {@code Optional}
  • + *
  • {@code "{}"} if {@code obj} is an empty array or {@link Map}
  • + *
  • {@code "{...}"} if {@code obj} is a non-empty array or {@link Map}
  • + *
  • {@code "[]"} if {@code obj} is an empty {@link Collection}
  • + *
  • {@code "[...]"} if {@code obj} is a non-empty {@link Collection}
  • *
  • {@linkplain Class#getName() Class name} if {@code obj} is a {@link Class}
  • *
  • {@linkplain Charset#name() Charset name} if {@code obj} is a {@link Charset}
  • *
  • {@linkplain TimeZone#getID() TimeZone ID} if {@code obj} is a {@link TimeZone}