aherbert commented on PR #1278: URL: https://github.com/apache/commons-lang/pull/1278#issuecomment-2371144334
Similar to (null checks not included): ```java EnumSet.of(searchEnums[0], searchEnums).contains(testEnum) ``` This code would leverage the optimised EnumSet code for any Enum that has less than 64 members (as internally it uses bit flags in a long). -- 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...@commons.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org