lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r908477 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/search/FuzzyTermEnum.java
Date Wed, 10 Feb 2010 12:59:00 GMT
Author: uschindler
Date: Wed Feb 10 12:59:00 2010
New Revision: 908477

URL: http://svn.apache.org/viewvc?rev=908477&view=rev
Log:
LUCENE-2258: Remove unneeded synchronization in FuzzyTermEnum

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/search/FuzzyTermEnum.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=908477&r1=908476&r2=908477&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Wed Feb 10 12:59:00 2010
@@ -197,6 +197,9 @@
 * 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/collation 

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/FuzzyTermEnum.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/FuzzyTermEnum.java?rev=908477&r1=908476&r2=908477&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/FuzzyTermEnum.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/FuzzyTermEnum.java Wed Feb 10 12:59:00
2010
@@ -189,7 +189,7 @@
    * @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)  {



Mime
View raw message