lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1213112 - /lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/index/MultiReader.java
Date Sun, 11 Dec 2011 23:44:51 GMT
Author: uschindler
Date: Sun Dec 11 23:44:51 2011
New Revision: 1213112

URL: http://svn.apache.org/viewvc?rev=1213112&view=rev
Log:
LUCENE-3641: remove useless clone in 3.x

Modified:
    lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/index/MultiReader.java

Modified: lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/index/MultiReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/index/MultiReader.java?rev=1213112&r1=1213111&r2=1213112&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/index/MultiReader.java
(original)
+++ lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/index/MultiReader.java
Sun Dec 11 23:44:51 2011
@@ -88,7 +88,7 @@ public class MultiReader extends IndexRe
   private MultiReader(IndexReader[] subReaders, boolean[] decrefOnClose,
                       Collection<ReaderFinishedListener> readerFinishedListeners)
                       throws IOException {
-    this.subReaders =  subReaders.clone();
+    this.subReaders =  subReaders;
     this.decrefOnClose = decrefOnClose;
     this.readerFinishedListeners = readerFinishedListeners;
     starts = new int[subReaders.length + 1];    // build starts array



Mime
View raw message