mjsax commented on code in PR #18490:
URL: https://github.com/apache/kafka/pull/18490#discussion_r1911865297
##########
streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/AbstractJoinIntegrationTest.java:
##########
@@ -260,16 +266,13 @@ void runSelfJoinTestWithDriver(
private void checkQueryableStore(final String queryableName, final
TestRecord<Long, String> expectedFinalResult, final TopologyTestDriver driver) {
final ReadOnlyKeyValueStore<Long, ValueAndTimestamp<String>> store =
driver.getTimestampedKeyValueStore(queryableName);
- final KeyValueIterator<Long, ValueAndTimestamp<String>> all =
store.all();
- final KeyValue<Long, ValueAndTimestamp<String>> onlyEntry = all.next();
+ try (final KeyValueIterator<Long, ValueAndTimestamp<String>> all =
store.all()) {
Review Comment:
Side cleanup
--
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]