remove synchronized from fakeNorms (private & always called within sync context)

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329523 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2005-10-30 05:37:11 +00:00
parent 9713d6c30e
commit 07d7d0701f
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ public class MultiReader extends IndexReader {
}
private byte[] ones;
private synchronized byte[] fakeNorms() {
private byte[] fakeNorms() {
if (ones==null) ones=SegmentReader.createFakeNorms(maxDoc());
return ones;
}

View File

@ -450,7 +450,7 @@ class SegmentReader extends IndexReader {
}
private byte[] ones;
private synchronized byte[] fakeNorms() {
private byte[] fakeNorms() {
if (ones==null) ones=createFakeNorms(maxDoc());
return ones;
}