src/java.base/share/classes/java/security/Timestamp.java

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

@@ -141,14 +141,14 @@
      *         its signer's certificate.
      */
     public String toString() {
         StringBuilder sb = new StringBuilder();
         sb.append("(");
-        sb.append("timestamp: " + timestamp);
+        sb.append("timestamp: ").append(timestamp);
         List<? extends Certificate> certs = signerCertPath.getCertificates();
         if (!certs.isEmpty()) {
-            sb.append("TSA: " + certs.get(0));
+            sb.append("TSA: ").append(certs.get(0));
         } else {
             sb.append("TSA: <empty>");
         }
         sb.append(")");
         return sb.toString();