mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-03 21:49:03 +00:00
Replace "null" with NULL_STRING constant in ObjectUtils.nullSafeConciseToString()
Closes gh-33625
This commit is contained in:
@@ -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" :
|
||||
|
||||
Reference in New Issue
Block a user