src/java.base/share/classes/sun/security/x509/DistributionPointName.java

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

@@ -229,14 +229,14 @@
      * Returns a printable string of the distribution point name.
      */
     public String toString() {
         StringBuilder sb = new StringBuilder();
         if (fullName != null) {
-            sb.append("DistributionPointName:\n     " + fullName + "\n");
+            sb.append("DistributionPointName:\n     ").append(fullName).append('\n');
 
         } else {
-            sb.append("DistributionPointName:\n     " + relativeName + "\n");
+            sb.append("DistributionPointName:\n     ").append(relativeName).append('\n');
         }
 
         return sb.toString();
     }
 }