On Thu, 18 Nov 2021 05:36:29 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> Andrey Turbanov has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8274893: Update java.desktop classes to use try-with-resources >> fix review comments > > src/java.desktop/share/classes/javax/swing/text/html/HTMLEditorKit.java line > 463: > >> 461: new InputStreamReader(is, ISO_8859_1)); >> 462: defaultStyles.loadRules(r, null); >> 463: r.close(); > > the reader was not added to the try block, it will not be closed. updated ------------- PR: https://git.openjdk.java.net/jdk/pull/5817