From 07d7d0701f7fef103ad181b294491aecd876846e Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Sun, 30 Oct 2005 05:37:11 +0000 Subject: [PATCH] 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 --- src/java/org/apache/lucene/index/MultiReader.java | 2 +- src/java/org/apache/lucene/index/SegmentReader.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/lucene/index/MultiReader.java b/src/java/org/apache/lucene/index/MultiReader.java index 7d55b6baedf..77cb3baff0b 100644 --- a/src/java/org/apache/lucene/index/MultiReader.java +++ b/src/java/org/apache/lucene/index/MultiReader.java @@ -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; } diff --git a/src/java/org/apache/lucene/index/SegmentReader.java b/src/java/org/apache/lucene/index/SegmentReader.java index 233399965e7..d7374da8ead 100644 --- a/src/java/org/apache/lucene/index/SegmentReader.java +++ b/src/java/org/apache/lucene/index/SegmentReader.java @@ -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; }