diff --git a/src/share/classes/javax/net/ssl/SSLParameters.java b/src/share/classes/javax/net/ssl/SSLParameters.java index 18a1f97040fd97eb0fdd902cffbd1a7bf9de2b18..d207f6f9e6f73d3d187df5872425e6c9742f6ad0 100644 --- a/src/share/classes/javax/net/ssl/SSLParameters.java +++ b/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(