Skip to content

Commit

Permalink
Replace "null" with NULL_STRING constant in ObjectUtils.nullSafeConci…
Browse files Browse the repository at this point in the history
…seToString()

Closes gh-33625
  • Loading branch information
nomoreFt authored Oct 1, 2024
1 parent a21c557 commit 893f5dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ public static String nullSafeToString(@Nullable short[] array) {
*/
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" :
Expand Down

0 comments on commit 893f5dc

Please sign in to comment.