mirror of
https://github.com/apache/lucene.git
synced 2025-02-07 10:38:40 +00:00
37a060c15c
Synchronization cost around whole method is OK here because Filter object construction should be a lightweight call. Note: CachingWrapperFilter currently has a similar bug in bits() method but adding "synchronized" around that whole method would not be a solution there because of the cost of evaluating filter.bits and the unnecessary blocking effect this would have on threads using different readers to the thread with the lock. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@628921 13f79535-47bb-0310-9956-ffa450edef68