spring-framework/spring-context/src
Sam Brannen e746230de6 Introduce ObjectUtils.nullSafeConciseToString()
ObjectUtils.nullSafeToString(Object) exists for generating a string
representation of various objects in a "null-safe" manner, including
support for object graphs, collections, etc.

However, there are times when we would like to generate a "concise",
null-safe string representation that does not include an entire object
graph (or potentially a collection of object graphs).

This commit introduces ObjectUtils.nullSafeConciseToString(Object) to
address this need and makes use of the new feature in FieldError and
ConversionFailedException.

Closes gh-30286
2023-04-05 14:13:28 +02:00
..
jmh/java/org/springframework/context Early removal of 5.x-deprecated code 2021-11-18 09:18:06 +01:00
main Introduce ObjectUtils.nullSafeConciseToString() 2023-04-05 14:13:28 +02:00
test Introduce ObjectUtils.nullSafeConciseToString() 2023-04-05 14:13:28 +02:00
testFixtures/java/org/springframework/context/testfixture Refactor AssertJ assertions into more idiomatic ones 2023-04-04 17:34:07 +02:00