File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
spring-orm/src/main/java/org/springframework/orm/jpa Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -384,16 +384,6 @@ else if (targetClass.isInstance(proxy)) {
384
384
}
385
385
}
386
386
}
387
-
388
- @ Override
389
- protected void finalize () throws Throwable {
390
- // Trigger explicit EntityManager.close() call on garbage collection,
391
- // in particular for open/close statistics to be in sync. This is
392
- // only relevant if the Query object has not been executed, e.g.
393
- // when just used for the early validation of query definitions.
394
- EntityManagerFactoryUtils .closeEntityManager (this .em );
395
- super .finalize ();
396
- }
397
387
}
398
388
399
389
}
You can’t perform that action at this time.
0 commit comments