Apache Solr open-source search software
LUCENE-2258: Remove unneeded synchronization in FuzzyTermEnum
Uwe Schindler91ffd60a1687
diff --git a/CHANGES.txt b/CHANGES.txtindex 8637016edd6..fa4738ac934 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -197,6 +197,9 @@ Optimizations* LUCENE-2195: Speedup CharArraySet if set is empty.(Simon Willnauer via Robert Muir)+* LUCENE-2258: Remove unneeded synchronization in FuzzyTermEnum.+ (Uwe Schindler, Robert Muir)+Build* LUCENE-2124: Moved the JDK-based collation support from contrib/collationdiff --git a/src/java/org/apache/lucene/search/FuzzyTermEnum.java b/src/java/org/apache/lucene/search/FuzzyTermEnum.javaindex 90c77f9e828..788e397edd4 100644--- a/src/java/org/apache/lucene/search/FuzzyTermEnum.java+++ b/src/java/org/apache/lucene/search/FuzzyTermEnum.java@@ -189,7 +189,7 @@ public final class FuzzyTermEnum extends FilteredTermEnum {* @return the similarity, 0.0 or less indicates that it matches less than the required* threshold and 1.0 indicates that the text and target are identical*/- private synchronized final float similarity(final String target) {+ private float similarity(final String target) {final int m = target.length();final int n = text.length();if (n == 0) {