src/jdk.snmp/share/classes/com/sun/jmx/snmp/IPAcl/NetMaskImpl.java

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

@@ -63,11 +63,11 @@
         if (SNMP_LOGGER.isLoggable(Level.FINEST)) {
             SNMP_LOGGER.logp(Level.FINEST, NetMaskImpl.class.getName(),
                 "extractSubNet", "BINARY ARRAY :");
             StringBuilder sb = new StringBuilder();
             for(int i =0; i < addrLength; i++) {
-                sb.append((b[i] & 0xFF) + ":");
+                sb.append(b[i] & 0xFF).append(':');
             }
             SNMP_LOGGER.logp(Level.FINEST, NetMaskImpl.class.getName(),
                 "extractSubNet", sb.toString());
         }