474961 Close input stream for classes in AnnotationParser after scanning

This commit is contained in:
Jan Bartel 2015-08-19 11:12:40 +10:00
parent 3de7fc77c7
commit 4743c19a8c
1 changed files with 4 additions and 1 deletions

View File

@ -701,7 +701,10 @@ public class AnnotationParser
{
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)