You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by GitBox <gi...@apache.org> on 2020/11/13 14:06:45 UTC

[GitHub] [tika] lcc commented on a change in pull request #379: Fix unecessary close

lcc commented on a change in pull request #379:
URL: https://github.com/apache/tika/pull/379#discussion_r522970661



##########
File path: tika-core/src/test/java/org/apache/tika/config/ParamTest.java
##########
@@ -61,8 +61,6 @@ public void testSaveAndLoad() throws Exception {
             ByteArrayOutputStream stream = new ByteArrayOutputStream();
             param.save(stream);
             ByteArrayInputStream inStream = new ByteArrayInputStream(stream.toByteArray());
-            stream.close();
-            inStream.close();

Review comment:
       Sorry for the late response, can you tell me which tools send a false positive warning? Also, would you like me to put these two calls at the end of the loop?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org