Skip to content

Commit

Permalink
Revert os.close.
Browse files Browse the repository at this point in the history
  • Loading branch information
alesj committed Aug 3, 2008
1 parent 35a72b3 commit d320e43
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/main/java/org/jboss/virtual/VFSUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -731,15 +731,7 @@ public static void copyStreamAndClose(InputStream is, OutputStream os) throws IO
}
}
if (os != null)
{
try
{
os.close();
}
catch (IOException ignored)
{
}
}
os.close();
}
}

Expand Down Expand Up @@ -807,7 +799,7 @@ public static URI getCompatibleURI(VirtualFile file) throws Exception
* @throws Exception for any error
* @param <T> exact resource type
*/
protected static <T> T getCompatibleResource(VirtualFile file, ResourceCreator<T> creator) throws Exception
private static <T> T getCompatibleResource(VirtualFile file, ResourceCreator<T> creator) throws Exception
{
if (file == null)
throw new IllegalArgumentException("Null file");
Expand Down

0 comments on commit d320e43

Please sign in to comment.