diff --git a/src/java.base/share/classes/sun/security/ssl/SSLCipher.java b/src/java.base/share/classes/sun/security/ssl/SSLCipher.java index e30480dc369..f6909791f7d 100644 --- a/src/java.base/share/classes/sun/security/ssl/SSLCipher.java +++ b/src/java.base/share/classes/sun/security/ssl/SSLCipher.java @@ -1669,17 +1669,6 @@ enum SSLCipher { -1, -1L, pt.slice()); } - @Override - void dispose() { - if (cipher != null) { - try { - cipher.doFinal(); - } catch (Exception e) { - // swallow all types of exceptions. - } - } - } - @Override int estimateFragmentSize(int packetSize, int headerSize) { return packetSize - headerSize - recordIvSize - tagSize; @@ -1793,17 +1782,6 @@ enum SSLCipher { return len + nonce.length; } - @Override - void dispose() { - if (cipher != null) { - try { - cipher.doFinal(); - } catch (Exception e) { - // swallow all types of exceptions. - } - } - } - @Override int getExplicitNonceSize() { return recordIvSize; @@ -1966,17 +1944,6 @@ enum SSLCipher { -1, -1L, pt.slice()); } - @Override - void dispose() { - if (cipher != null) { - try { - cipher.doFinal(); - } catch (Exception e) { - // swallow all types of exceptions. - } - } - } - @Override int estimateFragmentSize(int packetSize, int headerSize) { return packetSize - headerSize - tagSize; @@ -2096,17 +2063,6 @@ enum SSLCipher { return len; } - @Override - void dispose() { - if (cipher != null) { - try { - cipher.doFinal(); - } catch (Exception e) { - // swallow all types of exceptions. - } - } - } - @Override int getExplicitNonceSize() { return 0; @@ -2235,17 +2191,6 @@ enum SSLCipher { -1, -1L, pt.slice()); } - @Override - void dispose() { - if (cipher != null) { - try { - cipher.doFinal(); - } catch (Exception e) { - // swallow all types of exceptions. - } - } - } - @Override int estimateFragmentSize(int packetSize, int headerSize) { return packetSize - headerSize - tagSize; @@ -2364,17 +2309,6 @@ enum SSLCipher { return len; } - @Override - void dispose() { - if (cipher != null) { - try { - cipher.doFinal(); - } catch (Exception e) { - // swallow all types of exceptions. - } - } - } - @Override int getExplicitNonceSize() { return 0; @@ -2526,17 +2460,6 @@ enum SSLCipher { -1, -1L, pt.slice()); } - @Override - void dispose() { - if (cipher != null) { - try { - cipher.doFinal(); - } catch (Exception e) { - // swallow all types of exceptions. - } - } - } - @Override int estimateFragmentSize(int packetSize, int headerSize) { return packetSize - headerSize - tagSize; @@ -2657,17 +2580,6 @@ enum SSLCipher { return len; } - @Override - void dispose() { - if (cipher != null) { - try { - cipher.doFinal(); - } catch (Exception e) { - // swallow all types of exceptions. - } - } - } - @Override int getExplicitNonceSize() { return 0;