changeset 6498:21f1b88e68ce

8000954: Add final keyword to new method in SSLParameters Reviewed-by: wetmore
author xuelei
date Fri, 19 Oct 2012 20:36:36 -0700
parents 27f854a1e5c5
children 93303f8a4a8e
files src/share/classes/javax/net/ssl/SSLParameters.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/net/ssl/SSLParameters.java	Fri Oct 19 11:43:59 2012 +0100
+++ b/src/share/classes/javax/net/ssl/SSLParameters.java	Fri Oct 19 20:36:36 2012 -0700
@@ -291,7 +291,7 @@
      *
      * @since 1.8
      */
-    public void setServerNames(List<SNIServerName> serverNames) {
+    public final void setServerNames(List<SNIServerName> serverNames) {
         if (serverNames != null) {
             if (!serverNames.isEmpty()) {
                 sniNames = new LinkedHashMap<>(serverNames.size());
@@ -349,7 +349,7 @@
      *
      * @since 1.8
      */
-    public List<SNIServerName> getServerNames() {
+    public final List<SNIServerName> getServerNames() {
         if (sniNames != null) {
             if (!sniNames.isEmpty()) {
                 return Collections.<SNIServerName>unmodifiableList(
@@ -386,7 +386,7 @@
      *
      * @since 1.8
      */
-    public void setSNIMatchers(Collection<SNIMatcher> matchers) {
+    public final void setSNIMatchers(Collection<SNIMatcher> matchers) {
         if (matchers != null) {
             if (!matchers.isEmpty()) {
                 sniMatchers = new HashMap<>(matchers.size());
@@ -424,7 +424,7 @@
      *
      * @since 1.8
      */
-    public Collection<SNIMatcher> getSNIMatchers() {
+    public final Collection<SNIMatcher> getSNIMatchers() {
         if (sniMatchers != null) {
             if (!sniMatchers.isEmpty()) {
                 return Collections.<SNIMatcher>unmodifiableList(