提交 16cbab5e 编写于 作者: J Jesse Glick

Better toString.

上级 8b2d70f6
......@@ -208,6 +208,10 @@ public abstract class Slave extends Node implements Serializable {
return name;
}
@Override public String toString() {
return getClass().getName() + "[" + name + "]";
}
public void setNodeName(String name) {
this.name = name;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册