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

Some factory methods in Grouped are missing generic parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.6.0
    • streams
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: