Skip to content

Commit 6dfd340

Browse files
committed
fix java syntax in test
1 parent 8c33581 commit 6dfd340

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/jdk/javax/net/ssl/HttpsURLConnection/SubjectAltNameIP.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void doClientSide() throws Exception {
157157
var sniSN = clientSSLSocket.getSSLParameters().getServerNames();
158158
if (sniSN != null && !sniSN.isEmpty()) {
159159
throw new RuntimeException("SNI server name '" +
160-
sniSN.getFirst() + "' must not be set.");
160+
sniSN.get(0) + "' must not be set.");
161161
}
162162

163163
if (conn.getResponseCode() == -1) {

0 commit comments

Comments
 (0)