src/java.base/share/classes/sun/security/ssl/SupportedEllipticCurvesExtension.java
Print this page
rev 10552 : 8055723[core]: Replace concat String to append in StringBuilder parameters
Contributed-by: Otavio Santana <otaviojava@java.net>
@@ -111,11 +111,11 @@
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("Extension " + type + ", curve names: {");
+ sb.append("Extension ").append(type).append(", curve names: {");
boolean first = true;
for (int curveId : curveIds) {
if (first) {
first = false;
} else {
@@ -136,11 +136,11 @@
} else if (curveId == ARBITRARY_PRIME) {
sb.append("arbitrary_explicit_prime_curves");
} else if (curveId == ARBITRARY_CHAR2) {
sb.append("arbitrary_explicit_char2_curves");
} else {
- sb.append("unknown curve " + curveId);
+ sb.append("unknown curve ").append(curveId);
}
}
sb.append("}");
return sb.toString();
}