--- a/src/java.base/share/classes/sun/security/ssl/InputRecord.java Thu Jun 07 23:53:56 2018 +0800
+++ b/src/java.base/share/classes/sun/security/ssl/InputRecord.java Thu Jun 07 09:30:42 2018 -0700
@@ -25,8 +25,12 @@
package sun.security.ssl;
-import java.io.*;
-import java.nio.*;
+import java.io.Closeable;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.nio.BufferUnderflowException;
+import java.nio.ByteBuffer;
import javax.crypto.BadPaddingException;
import sun.security.ssl.SSLCipher.SSLReadCipher;
@@ -62,10 +66,6 @@
this.helloVersion = helloVersion;
}
- ProtocolVersion getHelloVersion() {
- return helloVersion;
- }
-
boolean seqNumIsHuge() {
return (readCipher.authenticator != null) &&
readCipher.authenticator.seqNumIsHuge();
@@ -281,7 +281,7 @@
j = pointer + 2;
for (int i = 0; i < cipherSpecLen; i += 3) {
if (packet.get() != 0) {
- // Ignore version 2.0 specifix cipher suite. Clients
+ // Ignore version 2.0 specific cipher suite. Clients
// should also include the version 3.0 equivalent in
// the V2ClientHello message.
packet.get(); // ignore the 2nd byte