Browse Source

Polish (minor)

pull/382/merge
Rossen Stoyanchev 11 years ago
parent
commit
92a48b72d7
  1. 2
      spring-messaging/src/main/java/org/springframework/messaging/support/GenericMessage.java

2
spring-messaging/src/main/java/org/springframework/messaging/support/GenericMessage.java

@ -83,7 +83,7 @@ public class GenericMessage<T> implements Message<T>, Serializable { @@ -83,7 +83,7 @@ public class GenericMessage<T> implements Message<T>, Serializable {
public String toString() {
StringBuilder sb = new StringBuilder();
if (byte[].class.equals(this.payload.getClass())) {
if (this.payload instanceof byte[]) {
sb.append("[Payload byte[").append(((byte[]) this.payload).length).append("]]");
}
else {

Loading…
Cancel
Save