Reduced the number of isConnected() calls in AbstractChannel.toString()

This commit is contained in:
Trustin Lee 2009-02-09 08:01:10 +00:00
parent d50322f27f
commit a698db26c9

View File

@ -229,7 +229,7 @@ public abstract class AbstractChannel implements Channel {
buf.append("(id: "); buf.append("(id: ");
buf.append(id.toString()); buf.append(id.toString());
if (isConnected()) { if (connected) {
buf.append(", "); buf.append(", ");
if (getParent() == null) { if (getParent() == null) {
buf.append(getLocalAddress()); buf.append(getLocalAddress());