File tree Expand file tree Collapse file tree
queryresultio/api/src/main/java/org/eclipse/rdf4j/query/resultio/helpers
query/src/main/java/org/eclipse/rdf4j/query/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 *******************************************************************************/
88package org .eclipse .rdf4j .query .impl ;
99
10- import java .io .IOException ;
1110import java .io .InputStream ;
1211import java .io .InputStreamReader ;
1312import java .lang .reflect .UndeclaredThrowableException ;
@@ -131,28 +130,10 @@ protected void handleClose()
131130 throws QueryEvaluationException
132131 {
133132 try {
134- try {
135- super .handleClose ();
136- }
137- finally {
138- try {
139- // After checking that we ourselves cannot possibly be generating an NPE ourselves,
140- // attempt to close the input stream we were given
141- InputStream toClose = in ;
142- if (toClose != null ) {
143- toClose .close ();
144- }
145- }
146- catch (NullPointerException e ) {
147- // Swallow NullPointerException that Apache HTTPClient is hiding behind a NotThreadSafe annotation
148- }
149- }
150- }
151- catch (IOException e ) {
152- throw new QueryEvaluationException (e );
133+ super .handleClose ();
153134 }
154135 finally {
155- queue .close ();
136+ queue .done ();
156137 }
157138 }
158139
Original file line number Diff line number Diff line change 77 *******************************************************************************/
88package org .eclipse .rdf4j .query .resultio .helpers ;
99
10- import java .io .IOException ;
1110import java .io .InputStream ;
1211import java .lang .reflect .UndeclaredThrowableException ;
1312import java .util .ArrayList ;
@@ -61,28 +60,10 @@ protected void handleClose()
6160 throws QueryEvaluationException
6261 {
6362 try {
64- try {
65- super .handleClose ();
66- }
67- finally {
68- try {
69- // After checking that we ourselves cannot possibly be generating an NPE ourselves,
70- // attempt to close the input stream we were given
71- InputStream toClose = in ;
72- if (toClose != null ) {
73- toClose .close ();
74- }
75- }
76- catch (NullPointerException e ) {
77- // Swallow NullPointerException that Apache HTTPClient is hiding behind a NotThreadSafe annotation
78- }
79- }
80- }
81- catch (IOException e ) {
82- throw new QueryEvaluationException (e );
63+ super .handleClose ();
8364 }
8465 finally {
85- queue .close ();
66+ queue .done ();
8667 }
8768 }
8869
You can’t perform that action at this time.
0 commit comments