[hibernate-commits] Hibernate SVN: r11529 - trunk/HibernateExt/search/src/java/org/hibernate/search/query.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Tue May 15 19:06:34 EDT 2007
Author: alesj
Date: 2007-05-15 19:06:34 -0400 (Tue, 15 May 2007)
New Revision: 11529
Modified:
trunk/HibernateExt/search/src/java/org/hibernate/search/query/FullTextQueryImpl.java
Log:
Non-functional null check + test commit.
Modified: trunk/HibernateExt/search/src/java/org/hibernate/search/query/FullTextQueryImpl.java
===================================================================
--- trunk/HibernateExt/search/src/java/org/hibernate/search/query/FullTextQueryImpl.java 2007-05-15 23:03:21 UTC (rev 11528)
+++ trunk/HibernateExt/search/src/java/org/hibernate/search/query/FullTextQueryImpl.java 2007-05-15 23:06:34 UTC (rev 11529)
@@ -107,15 +107,12 @@
throw new HibernateException( "Unable to query Lucene index", e );
}
finally {
- if ( searcher != null ) {
- try {
- searcher.close();
- }
- catch (IOException e) {
- log.warn( "Unable to properly close searcher during lucene query: " + getQueryString(), e );
- }
- }
- }
+ try {
+ searcher.close();
+ } catch (IOException e) {
+ log.warn("Unable to properly close searcher during lucene query: " + getQueryString(), e);
+ }
+ }
}
public ScrollableResults scroll() throws HibernateException {
More information about the hibernate-commits
mailing list