HHH-8211 - Checkstyle and FindBugs fix-ups

This commit is contained in:
Steve Ebersole 2013-05-22 11:12:31 -05:00
parent ad103b1c30
commit 4ee980d9ff
1 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ import javax.persistence.Id;
import java.util.Collections; import java.util.Collections;
import org.hibernate.Filter;
import org.hibernate.Session; import org.hibernate.Session;
import org.hibernate.SessionFactory; import org.hibernate.SessionFactory;
import org.hibernate.cfg.AvailableSettings; import org.hibernate.cfg.AvailableSettings;
@ -98,7 +99,7 @@ public class TupleSupportTest extends BaseUnitTestCase {
public void testImplicitTupleNotEquals() { public void testImplicitTupleNotEquals() {
final String hql = "from TheEntity e where e.compositeValue <> :p1"; final String hql = "from TheEntity e where e.compositeValue <> :p1";
HQLQueryPlan queryPlan = ( (SessionFactoryImplementor) sessionFactory ).getQueryPlanCache() HQLQueryPlan queryPlan = ( (SessionFactoryImplementor) sessionFactory ).getQueryPlanCache()
.getHQLQueryPlan( hql, false, Collections.emptyMap() ); .getHQLQueryPlan( hql, false, Collections.<String,Filter>emptyMap() );
assertEquals( 1, queryPlan.getSqlStrings().length ); assertEquals( 1, queryPlan.getSqlStrings().length );
System.out.println( " SQL : " + queryPlan.getSqlStrings()[0] ); System.out.println( " SQL : " + queryPlan.getSqlStrings()[0] );
@ -109,7 +110,7 @@ public class TupleSupportTest extends BaseUnitTestCase {
public void testImplicitTupleNotInList() { public void testImplicitTupleNotInList() {
final String hql = "from TheEntity e where e.compositeValue not in (:p1,:p2)"; final String hql = "from TheEntity e where e.compositeValue not in (:p1,:p2)";
HQLQueryPlan queryPlan = ( (SessionFactoryImplementor) sessionFactory ).getQueryPlanCache() HQLQueryPlan queryPlan = ( (SessionFactoryImplementor) sessionFactory ).getQueryPlanCache()
.getHQLQueryPlan( hql, false, Collections.emptyMap() ); .getHQLQueryPlan( hql, false, Collections.<String,Filter>emptyMap() );
assertEquals( 1, queryPlan.getSqlStrings().length ); assertEquals( 1, queryPlan.getSqlStrings().length );
System.out.println( " SQL : " + queryPlan.getSqlStrings()[0] ); System.out.println( " SQL : " + queryPlan.getSqlStrings()[0] );