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

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

*** 466,481 **** sb.append("("); sb.append(this.location); if (this.certs != null && this.certs.length > 0) { for (int i = 0; i < this.certs.length; i++) { ! sb.append( " " + this.certs[i]); } } else if (this.signers != null && this.signers.length > 0) { for (int i = 0; i < this.signers.length; i++) { ! sb.append( " " + this.signers[i]); } } else { sb.append(" <no signer certificates>"); } sb.append(")"); --- 466,481 ---- sb.append("("); sb.append(this.location); if (this.certs != null && this.certs.length > 0) { for (int i = 0; i < this.certs.length; i++) { ! sb.append(' ').append(this.certs[i]); } } else if (this.signers != null && this.signers.length > 0) { for (int i = 0; i < this.signers.length; i++) { ! sb.append(' ').append(this.signers[i]); } } else { sb.append(" <no signer certificates>"); } sb.append(")");