added finals

This commit is contained in:
Timo Westkämper 2010-12-29 07:32:56 +00:00
parent 1cc08c1455
commit c8f5ba7d80
2 changed files with 1 additions and 9 deletions

View File

@ -14,7 +14,7 @@ import com.mysema.query.QueryException;
*/
public class LuceneSearcher {
private IndexSearcher searcher;
private final IndexSearcher searcher;
public LuceneSearcher(IndexSearcher searcher) {
this.searcher = searcher;

View File

@ -22,14 +22,6 @@ public class LuceneSessionFactoryImpl implements LuceneSessionFactory {
private final AtomicReference<LuceneSearcher> searcher = new AtomicReference<LuceneSearcher>();
// private LuceneInternalsFactory factory = new LuceneInternalsFactory() {
// IndexSearcher
// }
//
// public static interface LuceneInternalsFactory {
//
// }
public LuceneSessionFactoryImpl(String indexPath) throws IOException {
File folder = new File(indexPath);
if (!folder.exists() && !folder.mkdirs()) {