jdk/src/java.base/share/classes/sun/security/ssl/ExtensionType.java
changeset 30897 58150036d89b
parent 25859 3317bb8137f4
child 32032 22badc53802f
equal deleted inserted replaced
30896:7d150914095e 30897:58150036d89b
     1 /*
     1 /*
     2  * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    41     @Override
    41     @Override
    42     public String toString() {
    42     public String toString() {
    43         return name;
    43         return name;
    44     }
    44     }
    45 
    45 
    46     static List<ExtensionType> knownExtensions = new ArrayList<ExtensionType>(9);
    46     static List<ExtensionType> knownExtensions =
       
    47             new ArrayList<ExtensionType>(13);
    47 
    48 
    48     static ExtensionType get(int id) {
    49     static ExtensionType get(int id) {
    49         for (ExtensionType ext : knownExtensions) {
    50         for (ExtensionType ext : knownExtensions) {
    50             if (ext.id == id) {
    51             if (ext.id == id) {
    51                 return ext;
    52                 return ext;