donnerpeter commented on code in PR #11904: URL: https://github.com/apache/lucene/pull/11904#discussion_r1015510285
########## lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/AffixCondition.java: ########## @@ -31,8 +31,30 @@ */ interface AffixCondition { String ALWAYS_TRUE_KEY = ".*"; - AffixCondition ALWAYS_TRUE = (word, offset, length) -> true; Review Comment: Before the delegation, the default method calls String.toCharArray, and I've seen it in the profiler, so apparently JIT doesn't always remove it. -- 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