Clean up compiler warns

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16169 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Brian Stansberry 2009-03-17 19:04:10 +00:00
parent 8095d02454
commit 64d7610e65
1 changed files with 5 additions and 6 deletions

View File

@ -23,7 +23,6 @@
*/ */
package org.hibernate.test.cache.jbc2.functional; package org.hibernate.test.cache.jbc2.functional;
import org.hibernate.cache.RegionFactory;
import org.hibernate.cfg.Configuration; import org.hibernate.cfg.Configuration;
import org.hibernate.cfg.Environment; import org.hibernate.cfg.Environment;
import org.hibernate.cfg.Mappings; import org.hibernate.cfg.Mappings;
@ -73,7 +72,7 @@ public abstract class CacheTestCaseBase extends FunctionalTestCase {
cfg.setProperty(Environment.CONNECTION_PROVIDER, getConnectionProviderClass().getName()); cfg.setProperty(Environment.CONNECTION_PROVIDER, getConnectionProviderClass().getName());
cfg.setProperty(Environment.TRANSACTION_MANAGER_STRATEGY, getTransactionManagerLookupClass().getName()); cfg.setProperty(Environment.TRANSACTION_MANAGER_STRATEGY, getTransactionManagerLookupClass().getName());
Class transactionFactory = getTransactionFactoryClass(); Class<?> transactionFactory = getTransactionFactoryClass();
if (transactionFactory != null) if (transactionFactory != null)
cfg.setProperty( Environment.TRANSACTION_STRATEGY, transactionFactory.getName() ); cfg.setProperty( Environment.TRANSACTION_STRATEGY, transactionFactory.getName() );
@ -101,19 +100,19 @@ public abstract class CacheTestCaseBase extends FunctionalTestCase {
*/ */
protected abstract void configureCacheFactory(Configuration cfg); protected abstract void configureCacheFactory(Configuration cfg);
protected abstract Class getCacheRegionFactory(); protected abstract Class<?> getCacheRegionFactory();
protected abstract boolean getUseQueryCache(); protected abstract boolean getUseQueryCache();
protected Class getConnectionProviderClass() { protected Class<?> getConnectionProviderClass() {
return org.hibernate.test.tm.ConnectionProviderImpl.class; return org.hibernate.test.tm.ConnectionProviderImpl.class;
} }
protected Class getTransactionManagerLookupClass() { protected Class<?> getTransactionManagerLookupClass() {
return org.hibernate.test.tm.TransactionManagerLookupImpl.class; return org.hibernate.test.tm.TransactionManagerLookupImpl.class;
} }
protected Class getTransactionFactoryClass() { protected Class<?> getTransactionFactoryClass() {
return null; return null;
} }