Skip to content

Commit

Permalink
474961 Close input stream for classes in AnnotationParser after scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
janbartel committed Aug 19, 2015
1 parent 3de7fc7 commit 4743c19
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,10 @@ protected void parseDir (Set<? extends Handler> handlers, Resource dir, ClassNam
{
Resource r = Resource.newResource(res.getURL());
if (LOG.isDebugEnabled()) {LOG.debug("Scanning class {}", r);};
scanClass(handlers, dir, r.getInputStream());
try (InputStream is=r.getInputStream())
{
scanClass(handlers, dir, is);
}
}
}
catch (Exception ex)
Expand Down

0 comments on commit 4743c19

Please sign in to comment.