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

IndexSearchType should use sealed trait instead of Enumeration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • core

    Description

      In Scala, we prefer sealed traits over Enumeration since the former gives you exhaustiveness checking. With Scala Enumeration, you don't get a warning if you add a new value that is not handled in a given pattern match.

      Attachments

        Issue Links

          Activity

            People

              huxi_2b huxihx
              junrao Jun Rao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: