src/java.rmi/share/classes/java/rmi/dgc/VMID.java

Print this page
rev 10521 : 8055723[core]: Replace concat String to append in StringBuilder parameters
Contributed-by: Otavio Santana <otaviojava@java.net>

@@ -122,12 +122,11 @@
     public String toString() {
         StringBuilder sb = new StringBuilder();
         if (addr != null)
             for (int i = 0; i < addr.length; ++ i) {
                 int x = addr[i] & 0xFF;
-                sb.append((x < 0x10 ? "0" : "") +
-                          Integer.toString(x, 16));
+                sb.append(x < 0x10 ? "0" : "").append(Integer.toString(x, 16));
             }
         sb.append(':');
         sb.append(uid.toString());
         return sb.toString();
     }