Skip to content

Commit 893f5dc

Browse files
authored
Replace "null" with NULL_STRING constant in ObjectUtils.nullSafeConciseToString()
Closes spring-projectsgh-33625
1 parent a21c557 commit 893f5dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-core/src/main/java/org/springframework/util/ObjectUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ public static String nullSafeToString(@Nullable short[] array) {
901901
*/
902902
public static String nullSafeConciseToString(@Nullable Object obj) {
903903
if (obj == null) {
904-
return "null";
904+
return NULL_STRING;
905905
}
906906
if (obj instanceof Optional<?> optional) {
907907
return (optional.isEmpty() ? "Optional.empty" :

0 commit comments

Comments
 (0)