8257788: Class fields could be local in the SunJSSE provider

Reviewed-by: shade
This commit is contained in:
Xue-Lei Andrew Fan 2020-12-07 16:35:01 +00:00
parent d29c78da19
commit dcf63f8578
4 changed files with 4 additions and 15 deletions

View file

@ -323,8 +323,6 @@ final class CertStatusExtension {
final List<ResponderId> responderIds;
final List<Extension> extensions;
private final int ridListLen;
private final int extListLen;
static {
OCSPStatusRequest ocspReq = null;
@ -360,7 +358,7 @@ final class CertStatusExtension {
List<Extension> exts = new ArrayList<>();
ByteBuffer m = ByteBuffer.wrap(encoded);
this.ridListLen = Record.getInt16(m);
int ridListLen = Record.getInt16(m);
if (m.remaining() < (ridListLen + 2)) {
throw new SSLProtocolException(
"Invalid OCSP status request: insufficient data");
@ -384,7 +382,7 @@ final class CertStatusExtension {
}
byte[] extListBytes = Record.getBytes16(m);
this.extListLen = extListBytes.length;
int extListLen = extListBytes.length;
if (extListLen > 0) {
try {
DerInputStream dis = new DerInputStream(extListBytes);