You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "m1a2st (via GitHub)" <gi...@apache.org> on 2025/03/02 06:44:57 UTC
Re: [PR] MINOR: Rewrite unchecked operations in Mock API [kafka]
m1a2st commented on code in PR #19071:
URL: https://github.com/apache/kafka/pull/19071#discussion_r1976553529
##########
streams/src/test/java/org/apache/kafka/streams/kstream/internals/KTableImplTest.java:
##########
@@ -587,19 +587,16 @@ public void shouldThrowNullPointerOnTransformValuesWithKeyWhenTransformerSupplie
assertThrows(NullPointerException.class, () -> table.transformValues(null));
}
- @SuppressWarnings("unchecked")
@Test
public void shouldThrowNullPointerOnTransformValuesWithKeyWhenMaterializedIsNull() {
- final ValueTransformerWithKeySupplier<String, String, ?> valueTransformerSupplier =
- mock(ValueTransformerWithKeySupplier.class);
+ final ValueTransformerWithKeySupplier<String, String, ?> valueTransformerSupplier = mock();
Review Comment:
I use `./gradlew clean build -x test` command, It still have the warning message

--
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org