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)

Reply via email to