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

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" :