You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (Jira)" <ji...@apache.org> on 2020/10/07 20:39:00 UTC

[jira] [Created] (KAFKA-10584) IndexSearchType should use sealed trait instead of Enumeration

Jun Rao created KAFKA-10584:
-------------------------------

             Summary: IndexSearchType should use sealed trait instead of Enumeration
                 Key: KAFKA-10584
                 URL: https://issues.apache.org/jira/browse/KAFKA-10584
             Project: Kafka
          Issue Type: Improvement
          Components: core
            Reporter: Jun Rao


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)