From ad05b02ff5ff60df337aa17091316ebe50911afe 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-30810 --- .../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 1be318c69fb..38621f2f5d7 100644 --- a/spring-core/src/main/java/org/springframework/util/ObjectUtils.java +++ b/spring-core/src/main/java/org/springframework/util/ObjectUtils.java @@ -915,6 +915,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}