Added nullable

This commit is contained in:
Lassi Immonen 2010-12-30 14:54:02 +00:00
parent d8ede88ee7
commit 02c4f395ca

View File

@ -115,7 +115,7 @@ public class LuceneSessionFactoryImpl implements LuceneSessionFactory {
}
}
private LuceneSearcher createNewSearcher(LuceneSearcher expected) throws IOException {
private LuceneSearcher createNewSearcher(@Nullable LuceneSearcher expected) throws IOException {
LuceneSearcher s = new LuceneSearcher(directory, releaseListener);
if (!searcher.compareAndSet(expected, s)) {
// Some thread already created a new one so just close this