[ 
https://issues.apache.org/jira/browse/KAFKA-10584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

huxihx reassigned KAFKA-10584:
------------------------------

    Assignee: huxihx

> 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
>            Assignee: huxihx
>            Priority: Major
>              Labels: newbie
>
> 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)

Reply via email to