474961 Close input stream for classes in AnnotationParser after scanning
This commit is contained in:
parent
3de7fc77c7
commit
4743c19a8c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue