On Thu, 11 May 2023 06:27:39 GMT, Ferenc Rakoczi <d...@openjdk.org> wrote:
> I had considered that and decided not to use it. In my opinion, Java Enum is > much more complicated than it should be for this case. OK. > Efficiency is not a concern here OK. > but I also don't see how enum could be more efficient. enum switch is O(1), while if-else not. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/13691#discussion_r1190697557