We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c33581 commit 6dfd340Copy full SHA for 6dfd340
1 file changed
test/jdk/javax/net/ssl/HttpsURLConnection/SubjectAltNameIP.java
@@ -157,7 +157,7 @@ void doClientSide() throws Exception {
157
var sniSN = clientSSLSocket.getSSLParameters().getServerNames();
158
if (sniSN != null && !sniSN.isEmpty()) {
159
throw new RuntimeException("SNI server name '" +
160
- sniSN.getFirst() + "' must not be set.");
+ sniSN.get(0) + "' must not be set.");
161
}
162
163
if (conn.getResponseCode() == -1) {
0 commit comments