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

IndexSearchType should use sealed trait instead of Enumeration

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: core
    • Labels:

      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

          Activity

            People

            • Assignee:
              huxi_2b huxihx
              Reporter:
              junrao Jun Rao

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment