Source:
public void addFixedToString(StringBuilder sb, boolean useIpAddress) { String host; InetAddress add = getInetAddress(); if ((add != null) && (add.isMulticastAddress() || useIpAddress)) { host = add.getHostAddress(); } else { String hostName = memberData.getHostName(); InetAddressValidator inetAddressValidator = InetAddressValidator.getInstance(); boolean isIpAddress = inetAddressValidator.isValid(hostName); host = isIpAddress ? hostName : shortName(hostName); } sb.append(host); String myName = getName(); int vmPid = memberData.getProcessId(); int vmKind = memberData.getVmKind(); if (vmPid > 0 || vmKind != MemberIdentifier.NORMAL_DM_TYPE || !"".equals(myName)) { sb.append("("); if (!"".equals(myName)) { sb.append(myName); if (vmPid > 0) { sb.append(':'); } } if (vmPid > 0) sb.append(vmPid); String vmStr = ""; switch (vmKind) { case MemberIdentifier.NORMAL_DM_TYPE: break; case MemberIdentifier.LOCATOR_DM_TYPE: vmStr = ":locator"; break; case MemberIdentifier.ADMIN_ONLY_DM_TYPE: vmStr = ":admin"; break; case MemberIdentifier.LONER_DM_TYPE: vmStr = ":loner"; break; default: vmStr = ":<unknown:" + vmKind + ">"; break; } sb.append(vmStr); sb.append(")"); } if (vmKind != MemberIdentifier.LONER_DM_TYPE && memberData.isPreferredForCoordinator()) { sb.append("<ec>"); } int vmViewId = getVmViewId(); if (vmViewId >= 0) { sb.append("<v" + vmViewId + ">"); } sb.append(":"); sb.append(getMembershipPort()); if (vmKind == MemberIdentifier.LONER_DM_TYPE) { if (this.getUniqueTag() != null && this.getUniqueTag().length() != 0) { sb.append(":").append(this.getUniqueTag()); } String name = getName(); if (name.length() != 0) { sb.append(":").append(name); } } }

Target:
public void addFixedToString(StringBuilder sb, boolean useIpAddress) { String host; InetAddress inetAddress = getInetAddress(); if ((inetAddress != null) && (inetAddress.isMulticastAddress() || useIpAddress)) { host = inetAddress.getHostAddress(); } else { String hostName = memberData.getHostName(); InetAddressValidator inetAddressValidator = InetAddressValidator.getInstance(); boolean isIpAddress = inetAddressValidator.isValid(hostName); host = isIpAddress ? hostName : shortName(hostName); } sb.append(host); String myName = getName(); int vmPid = memberData.getProcessId(); int vmKind = memberData.getVmKind(); if (vmPid > 0 || vmKind != MemberIdentifier.NORMAL_DM_TYPE || !"".equals(myName)) { sb.append("("); if (!"".equals(myName)) { sb.append(myName); if (vmPid > 0) { sb.append(':'); } } if (vmPid > 0) sb.append(vmPid); String vmStr = ""; switch (vmKind) { case MemberIdentifier.NORMAL_DM_TYPE: break; case MemberIdentifier.LOCATOR_DM_TYPE: vmStr = ":locator"; break; case MemberIdentifier.ADMIN_ONLY_DM_TYPE: vmStr = ":admin"; break; case MemberIdentifier.LONER_DM_TYPE: vmStr = ":loner"; break; default: vmStr = ":<unknown:" + vmKind + ">"; break; } sb.append(vmStr); sb.append(")"); } if (vmKind != MemberIdentifier.LONER_DM_TYPE && memberData.isPreferredForCoordinator()) { sb.append("<ec>"); } int vmViewId = getVmViewId(); if (vmViewId >= 0) { sb.append("<v" + vmViewId + ">"); } sb.append(":"); sb.append(getMembershipPort()); if (vmKind == MemberIdentifier.LONER_DM_TYPE) { if (this.getUniqueTag() != null && this.getUniqueTag().length() != 0) { sb.append(":").append(this.getUniqueTag()); } String name = getName(); if (name.length() != 0) { sb.append(":").append(name); } } }