提交 f5cf3cd5 编写于 作者: S Stephane Nicoll

polishing

上级 79c75df0
...@@ -374,12 +374,13 @@ public abstract class SharedEntityManagerCreator { ...@@ -374,12 +374,13 @@ public abstract class SharedEntityManagerCreator {
} }
@Override @Override
protected void finalize() { protected void finalize() throws Throwable {
// Trigger explicit EntityManager.close() call on garbage collection, // Trigger explicit EntityManager.close() call on garbage collection,
// in particular for open/close statistics to be in sync. This is // in particular for open/close statistics to be in sync. This is
// only relevant if the Query object has not been executed, e.g. // only relevant if the Query object has not been executed, e.g.
// when just used for the early validation of query definitions. // when just used for the early validation of query definitions.
EntityManagerFactoryUtils.closeEntityManager(this.em); EntityManagerFactoryUtils.closeEntityManager(this.em);
super.finalize();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册