Browse Source

Merge pull request #27670 from asgh

* pr/27670:
  Use Arrays.deepToString for toString in SimpleKey

Closes gh-27670
pull/31121/head
Stephane Nicoll 2 years ago
parent
commit
7c508a4cd3
  1. 3
      spring-context/src/main/java/org/springframework/cache/interceptor/SimpleKey.java

3
spring-context/src/main/java/org/springframework/cache/interceptor/SimpleKey.java vendored

@ -23,7 +23,6 @@ import java.util.Arrays; @@ -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 { @@ -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 {

Loading…
Cancel
Save