Skip to content

Commit

Permalink
HHH-8211 - Checkstyle and FindBugs fix-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
sebersole committed May 22, 2013
1 parent ad103b1 commit 4ee980d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

import java.util.Collections;

import org.hibernate.Filter;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.AvailableSettings;
Expand Down Expand Up @@ -98,7 +99,7 @@ public void releaseSessionFactory() {
public void testImplicitTupleNotEquals() {
final String hql = "from TheEntity e where e.compositeValue <> :p1";
HQLQueryPlan queryPlan = ( (SessionFactoryImplementor) sessionFactory ).getQueryPlanCache()
.getHQLQueryPlan( hql, false, Collections.emptyMap() );
.getHQLQueryPlan( hql, false, Collections.<String,Filter>emptyMap() );

assertEquals( 1, queryPlan.getSqlStrings().length );
System.out.println( " SQL : " + queryPlan.getSqlStrings()[0] );
Expand All @@ -109,7 +110,7 @@ public void testImplicitTupleNotEquals() {
public void testImplicitTupleNotInList() {
final String hql = "from TheEntity e where e.compositeValue not in (:p1,:p2)";
HQLQueryPlan queryPlan = ( (SessionFactoryImplementor) sessionFactory ).getQueryPlanCache()
.getHQLQueryPlan( hql, false, Collections.emptyMap() );
.getHQLQueryPlan( hql, false, Collections.<String,Filter>emptyMap() );

assertEquals( 1, queryPlan.getSqlStrings().length );
System.out.println( " SQL : " + queryPlan.getSqlStrings()[0] );
Expand Down

0 comments on commit 4ee980d

Please sign in to comment.