From bb15c17fef24e08e70ff7f3285c1708d9f40a238 Mon Sep 17 00:00:00 2001 From: xuelei Date: Fri, 19 Oct 2012 20:36:36 -0700 Subject: [PATCH] 8000954: Add final keyword to new method in SSLParameters Reviewed-by: wetmore --- src/share/classes/javax/net/ssl/SSLParameters.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/share/classes/javax/net/ssl/SSLParameters.java b/src/share/classes/javax/net/ssl/SSLParameters.java index 18a1f9704..d207f6f9e 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( -- GitLab