File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
commons-vfs2/src/main/java/org/apache/commons/vfs2/provider Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,7 @@ protected FileObject createFile(final AbstractFileName name) throws Exception {
9090 @ Override
9191 protected void doCloseCommunicationLink () {
9292 if (httpClient instanceof Closeable ) {
93- // TODO "Error closing HttpClient" Commons IO
94- // Uncheck.run(() -> ((Closeable) httpClient).close(), () -> "Error closing HttpClient");
95- Uncheck .run (() -> ((Closeable ) httpClient ).close ());
93+ Uncheck .run (() -> ((Closeable ) httpClient ).close (), () -> "Error closing HttpClient" );
9694 }
9795 }
9896
Original file line number Diff line number Diff line change @@ -88,9 +88,7 @@ protected FileObject createFile(final AbstractFileName name) throws Exception {
8888 @ Override
8989 protected void doCloseCommunicationLink () {
9090 if (httpClient instanceof Closeable ) {
91- // TODO "Error closing HttpClient" Commons IO
92- // Uncheck.run(() -> ((Closeable) httpClient).close(), () -> "Error closing HttpClient");
93- Uncheck .run (() -> ((Closeable ) httpClient ).close ());
91+ Uncheck .run (() -> ((Closeable ) httpClient ).close (), () -> "Error closing HttpClient" );
9492 }
9593 }
9694
You can’t perform that action at this time.
0 commit comments