File tree 1 file changed +5
-4
lines changed
src/java.base/share/classes/sun/security/timestamp
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2003, 2021 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2003, 2022 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
25
25
26
26
package sun .security .timestamp ;
27
27
28
- import java .io .BufferedInputStream ;
29
28
import java .io .DataOutputStream ;
30
29
import java .io .EOFException ;
31
30
import java .io .IOException ;
32
31
import java .net .URI ;
33
32
import java .net .HttpURLConnection ;
34
- import java .util .*;
33
+ import java .util .List ;
34
+ import java .util .Map ;
35
+ import java .util .Set ;
35
36
36
37
import sun .security .util .Debug ;
37
38
@@ -123,7 +124,7 @@ public TSResponse generateTimestamp(TSRequest tsQuery) throws IOException {
123
124
124
125
// Receive the reply
125
126
byte [] replyBuffer = null ;
126
- try (var input = new BufferedInputStream ( connection .getInputStream () )) {
127
+ try (var input = connection .getInputStream ()) {
127
128
if (debug != null ) {
128
129
String header = connection .getHeaderField (0 );
129
130
debug .println (header );
You can’t perform that action at this time.
0 commit comments