RocMarshal commented on code in PR #27910:
URL: https://github.com/apache/flink/pull/27910#discussion_r3073383671
##########
flink-tests/src/test/java/org/apache/flink/test/manual/MassiveStringSorting.java:
##########
@@ -363,9 +363,7 @@ private File generateFileWithStrings(int numStrings, String
prefix) throws IOExc
bld.append(prefix);
File f = File.createTempFile("strings", "txt");
- BufferedWriter wrt = null;
- try {
- wrt = new BufferedWriter(new FileWriter(f));
+ try (BufferedWriter wrt = new BufferedWriter(new FileWriter(f))) {
Review Comment:
Thanks @spuru9 .
Nice catch!
Updated
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]