[
https://issues.apache.org/jira/browse/KAFKA-10584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
huxihx resolved KAFKA-10584.
----------------------------
Fix Version/s: 2.7.0
Resolution: Fixed
> 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
> Fix For: 2.7.0
>
>
> 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)