mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
Added nullable
This commit is contained in:
parent
d8ede88ee7
commit
02c4f395ca
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user