Replace "null" with NULL_STRING constant in ObjectUtils.nullSafeConciseToString()

Closes gh-33625
This commit is contained in:
Hyunwoo Kim 2024-10-01 19:33:40 +09:00 committed by GitHub
parent a21c557101
commit 893f5dcb9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -901,7 +901,7 @@ public abstract class ObjectUtils {
*/
public static String nullSafeConciseToString(@Nullable Object obj) {
if (obj == null) {
return "null";
return NULL_STRING;
}
if (obj instanceof Optional<?> optional) {
return (optional.isEmpty() ? "Optional.empty" :