src/java.base/share/classes/sun/security/ssl/SSLHandshake.java
branchJDK-8145252-TLS13-branch
changeset 56715 b152d06ed6a9
parent 56704 c3ee22c3a0f6
equal deleted inserted replaced
56714:2d7e08d730b6 56715:b152d06ed6a9
   463 
   463 
   464     @Override
   464     @Override
   465     public String toString() {
   465     public String toString() {
   466         return name;
   466         return name;
   467     }
   467     }
   468 
       
   469     /*
       
   470     static SSLHandshake valueOf(byte id) {
       
   471         for (SSLHandshake hs : SSLHandshake.values()) {
       
   472             if (hs.id == id) {
       
   473                 return hs;
       
   474             }
       
   475         }
       
   476 
       
   477         return null;
       
   478     }
       
   479     */
       
   480 
   468 
   481     static String nameOf(byte id) {
   469     static String nameOf(byte id) {
   482         // If two handshake message share the same handshake type, returns
   470         // If two handshake message share the same handshake type, returns
   483         // the first handshake message name.
   471         // the first handshake message name.
   484         //
   472         //