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