src/java.management/share/classes/javax/management/relation/RoleUnresolved.java

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

@@ -280,11 +280,11 @@
      *
      * @return a description of this RoleUnresolved object.
      */
     public String toString() {
         StringBuilder result = new StringBuilder();
-        result.append("role name: " + roleName);
+        result.append("role name: ").append(roleName);
         if (roleValue != null) {
             result.append("; value: ");
             for (Iterator<ObjectName> objNameIter = roleValue.iterator();
                  objNameIter.hasNext();) {
                 ObjectName currObjName = objNameIter.next();

@@ -292,11 +292,11 @@
                 if (objNameIter.hasNext()) {
                     result.append(", ");
                 }
             }
         }
-        result.append("; problem type: " + problemType);
+        result.append("; problem type: ").append(problemType);
         return result.toString();
     }
 
     /**
      * Deserializes a {@link RoleUnresolved} from an {@link ObjectInputStream}.