Drop outdated DeferredQueryInvocationHandler.finalize() implementation
Issue: SPR-15363
This commit is contained in:
parent
15bff8f911
commit
b2a6a572d3
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2016 the original author or authors.
|
* Copyright 2002-2017 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -384,16 +384,6 @@ public abstract class SharedEntityManagerCreator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void finalize() throws Throwable {
|
|
||||||
// Trigger explicit EntityManager.close() call on garbage collection,
|
|
||||||
// in particular for open/close statistics to be in sync. This is
|
|
||||||
// only relevant if the Query object has not been executed, e.g.
|
|
||||||
// when just used for the early validation of query definitions.
|
|
||||||
EntityManagerFactoryUtils.closeEntityManager(this.em);
|
|
||||||
super.finalize();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue