lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r329523 - in /lucene/java/trunk/src/java/org/apache/lucene/index: MultiReader.java SegmentReader.java
Date Sun, 30 Oct 2005 05:37:25 GMT
Author: yonik
Date: Sat Oct 29 22:37:11 2005
New Revision: 329523

URL: http://svn.apache.org/viewcvs?rev=329523&view=rev
Log:
remove synchronized from fakeNorms (private & always called within sync context)

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/MultiReader.java
    lucene/java/trunk/src/java/org/apache/lucene/index/SegmentReader.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/MultiReader.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/index/MultiReader.java?rev=329523&r1=329522&r2=329523&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/MultiReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/MultiReader.java Sat Oct 29 22:37:11
2005
@@ -153,7 +153,7 @@
   }
 
   private byte[] ones;
-  private synchronized byte[] fakeNorms() {
+  private byte[] fakeNorms() {
     if (ones==null) ones=SegmentReader.createFakeNorms(maxDoc());
     return ones;
   }

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/SegmentReader.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/index/SegmentReader.java?rev=329523&r1=329522&r2=329523&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/SegmentReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/SegmentReader.java Sat Oct 29 22:37:11
2005
@@ -450,7 +450,7 @@
   }
 
   private byte[] ones;
-  private synchronized byte[] fakeNorms() {
+  private byte[] fakeNorms() {
     if (ones==null) ones=createFakeNorms(maxDoc());
     return ones;
   }



Mime
View raw message