Author: epbernard
Date: 2009-03-25 17:07:29 -0400 (Wed, 25 Mar 2009)
New Revision: 16217
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/EntityManagerImpl.java
Log:
cleaner variable name
Modified: core/trunk/entitymanager/src/main/java/org/hibernate/ejb/EntityManagerImpl.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/EntityManagerImpl.java 2009-03-25
14:58:16 UTC (rev 16216)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/EntityManagerImpl.java 2009-03-25
21:07:29 UTC (rev 16217)
@@ -38,23 +38,23 @@
this.sessionFactory = sessionFactory;
this.open = true;
this.discardOnClose = discardOnClose;
- Object localSic = null;
- if (properties != null) localSic = properties.get(
HibernatePersistence.SESSION_INTERCEPTOR );
- if ( localSic != null ) {
- if (localSic instanceof Class) {
- sessionInterceptorClass = (Class) localSic;
+ Object localSessionInterceptor = null;
+ if (properties != null) localSessionInterceptor = properties.get(
HibernatePersistence.SESSION_INTERCEPTOR );
+ if ( localSessionInterceptor != null ) {
+ if (localSessionInterceptor instanceof Class) {
+ sessionInterceptorClass = (Class) localSessionInterceptor;
}
- else if (localSic instanceof String) {
+ else if (localSessionInterceptor instanceof String) {
try {
sessionInterceptorClass =
- ReflectHelper.classForName( (String) localSic, EntityManagerImpl.class );
+ ReflectHelper.classForName( (String) localSessionInterceptor,
EntityManagerImpl.class );
}
catch (ClassNotFoundException e) {
- throw new PersistenceException("Unable to instanciate interceptor: " +
localSic, e);
+ throw new PersistenceException("Unable to instanciate interceptor: " +
localSessionInterceptor, e);
}
}
else {
- throw new PersistenceException("Unable to instanciate interceptor: " +
localSic);
+ throw new PersistenceException("Unable to instanciate interceptor: " +
localSessionInterceptor);
}
}
this.sessionInterceptorClass = sessionInterceptorClass;
Show replies by date