KhyatiVaghamshi commented on code in PR #23280:
URL: https://github.com/apache/kafka/pull/23280#discussion_r4210000188
##########
connect/file/src/test/java/org/apache/kafka/connect/file/FileStreamSourceTaskTest.java:
##########
@@ -53,7 +56,7 @@ public class FileStreamSourceTaskTest {
@BeforeEach
public void setup() throws IOException {
- tempFile = File.createTempFile("file-stream-source-task-test", null);
Review Comment:
Yes, that makes sense. `Files.createFile(...)` already returns a `Path`, and
the test was converting to `File` only to convert back for
`Files.newOutputStream`. I updated `tempFile` to `Path` so it matches
`@TempDir` and avoids the extra conversions.
--
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]