mirror of
https://github.com/apache/lucene.git
synced 2025-02-10 12:05:36 +00:00
SOLR-13293: Fix compile error on Java 8
This commit is contained in:
parent
8864320e39
commit
21dfdac46c
@ -295,7 +295,7 @@ public class ConcurrentUpdateHttp2SolrClient extends SolrClient {
|
||||
|
||||
private void consumeFully(InputStream is) {
|
||||
if (is != null) {
|
||||
try (is) {
|
||||
try {
|
||||
// make sure the stream is full read
|
||||
is.skip(is.available());
|
||||
while (is.read() != -1) {
|
||||
@ -304,6 +304,12 @@ public class ConcurrentUpdateHttp2SolrClient extends SolrClient {
|
||||
// nothing to do then
|
||||
} catch (IOException e) {
|
||||
// quiet
|
||||
} finally {
|
||||
try {
|
||||
is.close();
|
||||
} catch (IOException e) {
|
||||
// quiet
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user