mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 04:02:00 +00:00
Since keySet() already applies the filter, size() evaluated the predicate twice for every accepted key. This commit uses delegate.keySet() instead, avoiding the second evaluation as well as a FilteredSet and FilteredIterator allocation. Closes gh-37256 Signed-off-by: Hyunwoo Jung <hyunwoojung@kakao.com>