Replace "null" with NULL_STRING constant in ObjectUtils.nullSafeConciseToString()
Closes gh-33625
This commit is contained in:
parent
a21c557101
commit
893f5dcb9b
|
|
@ -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" :
|
||||
|
|
|
|||
Loading…
Reference in New Issue