review request for 7021209, use try-with-resources in lang, math, util
Stuart Marks
stuart.marks at oracle.com
Tue Feb 22 23:21:01 UTC 2011
On 2/22/11 12:44 AM, Alan Bateman wrote:
> Minor comment on test/java/util/Formatter/FailingConstructors.java is that an
> alternative to using try-with-resources is to just replace it with
> Files.write(file.toPath(), FILE_CONTENTS.getBytes()). Same thing in
> test/java/util/Scanner/FailingConstructors.java.
Ah, good point. It's not directly related to try-with-resources but it's good
cleanup nonetheless. I'll integrate this change.
Thanks.
s'marks
More information about the core-libs-dev
mailing list