Description
Found a trivial resource leak in .../util/DomainSuffixes.java, where an InputStream is not closed:
InputStream input = this.getClass().getClassLoader().getResourceAsStream(file); try { new DomainSuffixesReader().read(this, input); } catch (Exception ex) { LOG.warn(StringUtils.stringifyException(ex)); }
instead of:
try (InputStream input = this.getClass().getClassLoader().getResourceAsStream(file)) { new DomainSuffixesReader().read(this, input); } catch (Exception ex) { LOG.warn(StringUtils.stringifyException(ex)); }
Where the InputStream is automatically closed.
Attachments
Issue Links
- links to