DomGarguilo commented on PR #5876:
URL: https://github.com/apache/accumulo/pull/5876#issuecomment-3282620299

   > I'm mainly curious why, in many of these conversions, you dropped the 
default case that threw an exception (usually IllegalStateException). What 
happens in those if the value is null or an unexpected enum?
   
   I dropped the defaults where my IDE warned me it was redundant. Things are 
handled differently in java 17 - the compiler checks that all enum values are 
covered and if they are, no default branch is needed. If new values are added 
to an enum, we will now get a compile-time error instead of a runtime exception 
which will force us to handle things explicitly which is nice.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to