diff --git a/jdk/src/share/classes/javax/net/ssl/SSLParameters.java b/jdk/src/share/classes/javax/net/ssl/SSLParameters.java index 18a1f97040f..d207f6f9e6f 100644 --- a/jdk/src/share/classes/javax/net/ssl/SSLParameters.java +++ b/jdk/src/share/classes/javax/net/ssl/SSLParameters.java @@ -291,7 +291,7 @@ public class SSLParameters { * * @since 1.8 */ - public void setServerNames(List serverNames) { + public final void setServerNames(List serverNames) { if (serverNames != null) { if (!serverNames.isEmpty()) { sniNames = new LinkedHashMap<>(serverNames.size()); @@ -349,7 +349,7 @@ public class SSLParameters { * * @since 1.8 */ - public List getServerNames() { + public final List getServerNames() { if (sniNames != null) { if (!sniNames.isEmpty()) { return Collections.unmodifiableList( @@ -386,7 +386,7 @@ public class SSLParameters { * * @since 1.8 */ - public void setSNIMatchers(Collection matchers) { + public final void setSNIMatchers(Collection matchers) { if (matchers != null) { if (!matchers.isEmpty()) { sniMatchers = new HashMap<>(matchers.size()); @@ -424,7 +424,7 @@ public class SSLParameters { * * @since 1.8 */ - public Collection getSNIMatchers() { + public final Collection getSNIMatchers() { if (sniMatchers != null) { if (!sniMatchers.isEmpty()) { return Collections.unmodifiableList(