uschindler commented on PR #13245: URL: https://github.com/apache/lucene/pull/13245#issuecomment-2027117060
I think last one is shortest. EnumMap would have been fine, but as it is all internal cache a simple array on enum's ordinal number is enough (same approach like switch statements on enums use). -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org