From 9d7bd9520c409642e96a9a82e64745d90001bae8 Mon Sep 17 00:00:00 2001 From: asgh Date: Wed, 10 Nov 2021 20:12:21 -0500 Subject: [PATCH] Use Arrays.deepToString for toString in SimpleKey See gh-27670 --- .../java/org/springframework/cache/interceptor/SimpleKey.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/cache/interceptor/SimpleKey.java b/spring-context/src/main/java/org/springframework/cache/interceptor/SimpleKey.java index 6dd60e6934b..d0f2a64ce82 100644 --- a/spring-context/src/main/java/org/springframework/cache/interceptor/SimpleKey.java +++ b/spring-context/src/main/java/org/springframework/cache/interceptor/SimpleKey.java @@ -23,7 +23,6 @@ import java.util.Arrays; import org.springframework.lang.Nullable; import org.springframework.util.Assert; -import org.springframework.util.StringUtils; /** * A simple key as returned from the {@link SimpleKeyGenerator}. @@ -73,7 +72,7 @@ public class SimpleKey implements Serializable { @Override public String toString() { - return getClass().getSimpleName() + " [" + StringUtils.arrayToCommaDelimitedString(this.params) + "]"; + return getClass().getSimpleName() + " " + Arrays.deepToString(this.params); } private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {