提交 92a48b72 编写于 作者: R Rossen Stoyanchev

Polish (minor)

上级 e3d3d8cd
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册