You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Dariusz Kordonski (Jira)" <ji...@apache.org> on 2020/01/31 22:31:00 UTC

[jira] [Created] (KAFKA-9490) Some factory methods in Grouped are missing generic parameters

Dariusz Kordonski created KAFKA-9490:
----------------------------------------

             Summary: 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


The following methods in {{Grouped}} class seem to be missing generic parameters {{<K,V> }}in the declated 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)