You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Matthias J. Sax (Jira)" <ji...@apache.org> on 2020/01/31 23:57:00 UTC
[jira] [Assigned] (KAFKA-9490) Some factory methods in Grouped are
missing generic parameters
[ https://issues.apache.org/jira/browse/KAFKA-9490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias J. Sax reassigned KAFKA-9490:
--------------------------------------
Assignee: Matthias J. Sax
> Some factory methods in Grouped are missing generic parameters
> --------------------------------------------------------------
>
> Key: KAFKA-9490
> URL: https://issues.apache.org/jira/browse/KAFKA-9490
> Project: Kafka
> Issue Type: Bug
> Components: streams
> Affects Versions: 2.4.0
> Reporter: Dariusz Kordonski
> Assignee: Matthias J. Sax
> Priority: Minor
>
> The following methods in {{Grouped}} class seem to be missing generic parameters {{<K,V>}} in the declared return type:
> {code:java}
> public static <K> Grouped keySerde(final Serde<K> keySerde) { return new Grouped<>(null, keySerde, null);
> }
> public static <V> Grouped valueSerde(final Serde<V> valueSerde) { return new Grouped<>(null, null, valueSerde);
> } {code}
> I think it both cases it should be:
> {code:java}
> public static <K,V> Grouped<K,V> ...() {code}
> This causes "unchecked call" compiler warnings when called by clients.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)