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

version 3.0.0 Processor implementation uses parameter record (restricted identifier)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.7.0, 3.0.0
    • None
    • streams
    • None
    • JDK 11

    Description

      Since 2.7.0 interface:

      org.apache.kafka.streams.processor.Processor<K, V>

      became depricated.

       

      It was replaced with interface: 

      org.apache.kafka.streams.processor.api.Processor<KIn, VIn, KOut, VOut>

      which defines method:

      void process(Record<KIn, VIn> record);

       

      There is a sonar lint rule java:S6213:

      "Restricted Identifiers should not be used as Identifiers" for:

      • var
      • yield
      • record <----

       

      Maybe this parameter could be renamed into something else to avoid this warning.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            avrbanac Aljoša Vrbanac
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: