frankvicky commented on PR #19071: URL: https://github.com/apache/kafka/pull/19071#issuecomment-2692787948
@clarkwtc I don't think it must use `var`. For example: ``` @Test public void testStateStore() { final StreamsBuilder builder = new StreamsBuilder(); final String topic1 = "topic1"; final String topic2 = "topic2"; final KTable<String, String> table1 = builder.table(topic1, consumed); final KTable<String, String> table2 = builder.table(topic2, consumed); final KTable<String, Integer> table1Mapped = table1.mapValues(s -> Integer.valueOf(s)); final KTable<String, Integer> table1MappedFiltered = table1Mapped.filter((key, value) -> (value % 2) == 0); table2.join(table1MappedFiltered, (v1, v2) -> v1 + v2); try (final TopologyTestDriver driver = new TopologyTestDriver(builder.build(), props)) { assertEquals(2, driver.getAllStateStores().size()); } } ``` In this way, there will be no warning during the build. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org