juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [juneau] lcc commented on a change in pull request #55: Java api fixes
Date Thu, 12 Nov 2020 21:18:52 GMT

lcc commented on a change in pull request #55:
URL: https://github.com/apache/juneau/pull/55#discussion_r522432238



##########
File path: juneau-core/juneau-marshall/src/main/java/org/apache/juneau/internal/IOUtils.java
##########
@@ -578,8 +570,6 @@ public static void close(Object...o) throws IOException {
 		IOException ex = null;
 		for (Object o2 : o) {
 			try {
-				if (o2 instanceof InputStream)
-					((InputStream)o2).close();

Review comment:
       As stated above, there doesn't seem to be any reason to call close on an InputStream.




----------------------------------------------------------------
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



Mime
View raw message