Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9490

Some factory methods in Grouped are missing generic parameters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.6.0
    • Component/s: streams
    • Labels:
      None

      Description

      The following methods in Grouped class seem to be missing generic parameters <K,V> in the declared return type:

      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); 
      } 

      I think it both cases it should be:

      public static <K,V> Grouped<K,V> ...() 

      This causes "unchecked call" compiler warnings when called by clients.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mjsax Matthias J. Sax
                Reporter:
                kordzik Dariusz Kordonski
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: