kowshik opened a new pull request #9561:
URL: https://github.com/apache/kafka/pull/9561


   In this PR, I've switched the `FeatureZNodeStatus` enum to be a sealed 
trait. 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.
   
   **Test plan:**
   Rely on existing tests.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to