@Override public String toString() { ServerType serverType = this.serverType; if (serverType != null && serverType.isThriftWithDefaults()) { serverType = null; } if (this.ipAddress == null) { if (serverType == null) { return super.toString(); } else { return this.hostName + '[' + this.port + "]{" + serverType.toString() + '}'; } } else if (serverType == null) { return this.hostName + '/' + this.ipAddress + '[' + this.port + ']'; } else { return this.hostName + '/' + this.ipAddress + '[' + this.port + "]{" + serverType.toString() + '}'; } }