LUCENE-4013: make getAndLock pkg-private, as DW is pkg-private so its effectively already pkg-private, but without broken javadocs links

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1329024 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-04-23 01:58:15 +00:00
parent a17404983b
commit 2bfe659f8f
2 changed files with 4 additions and 2 deletions

View File

@ -242,7 +242,9 @@ public abstract class DocumentsWriterPerThreadPool {
// don't recycle DWPT by default
}
public abstract ThreadState getAndLock(Thread requestingThread, DocumentsWriter documentsWriter);
// you cannot subclass this without being in o.a.l.index package anyway, so
// the class is already pkg-private... fix me: see LUCENE-4013
abstract ThreadState getAndLock(Thread requestingThread, DocumentsWriter documentsWriter);
/**

View File

@ -40,7 +40,7 @@ public class RandomDocumentsWriterPerThreadPool extends
}
@Override
public ThreadState getAndLock(Thread requestingThread,
ThreadState getAndLock(Thread requestingThread,
DocumentsWriter documentsWriter) {
ThreadState threadState = null;
if (getActiveThreadState() == 0) {