src/java.base/share/classes/java/security/cert/X509CRLSelector.java

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

@@ -570,21 +570,21 @@
         sb.append("X509CRLSelector: [\n");
         if (issuerNames != null) {
             sb.append("  IssuerNames:\n");
             Iterator<Object> i = issuerNames.iterator();
             while (i.hasNext())
-                sb.append("    " + i.next() + "\n");
+                sb.append("    ").append(i.next()).append('\n');
         }
         if (minCRL != null)
-            sb.append("  minCRLNumber: " + minCRL + "\n");
+            sb.append("  minCRLNumber: ").append(minCRL).append('\n');
         if (maxCRL != null)
-            sb.append("  maxCRLNumber: " + maxCRL + "\n");
+            sb.append("  maxCRLNumber: ").append(maxCRL).append('\n');
         if (dateAndTime != null)
-            sb.append("  dateAndTime: " + dateAndTime + "\n");
+            sb.append("  dateAndTime: ").append(dateAndTime).append('\n');
         if (certChecking != null)
-            sb.append("  Certificate being checked: " + certChecking + "\n");
-        sb.append("]");
+            sb.append("  Certificate being checked: ").append(certChecking).append('\n');
+        sb.append(']');
         return sb.toString();
     }
 
     /**
      * Decides whether a {@code CRL} should be selected.