<i18n dev> RFR: 8274893: Update java.desktop classes to use try-with-resources [v3]

Andrey Turbanov duke at openjdk.java.net
Thu Nov 18 18:36:22 UTC 2021


On Thu, 18 Nov 2021 05:36:29 GMT, Sergey Bylokhov <serb at 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


More information about the i18n-dev mailing list