Stop referring to JDO PersistenceManager in comments

This commit is contained in:
Sam Brannen 2023-12-04 16:50:53 +01:00
parent 62b3d7a963
commit cb60f74556
3 changed files with 3 additions and 3 deletions

View File

@ -1658,7 +1658,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
return switch (method.getName()) {
// Only consider equal when proxies are identical.
case "equals" -> (proxy == args[0]);
// Use hashCode of PersistenceManager proxy.
// Use hashCode of Connection proxy.
case "hashCode" -> System.identityHashCode(proxy);
// Handle close method: suppress, not valid.
case "close" -> null;

View File

@ -254,7 +254,7 @@ public class SingleConnectionFactory extends DelegatingConnectionFactory
return switch (method.getName()) {
// Only consider equal when proxies are identical.
case "equals" -> proxy == args[0];
// Use hashCode of PersistenceManager proxy.
// Use hashCode of Connection proxy.
case "hashCode" -> System.identityHashCode(proxy);
case "unwrap" -> this.target;
// Handle close method: suppress, not valid.

View File

@ -522,7 +522,7 @@ final class DefaultDatabaseClient implements DatabaseClient {
return switch (method.getName()) {
// Only consider equal when proxies are identical.
case "equals" -> proxy == args[0];
// Use hashCode of PersistenceManager proxy.
// Use hashCode of Connection proxy.
case "hashCode" -> System.identityHashCode(proxy);
case "unwrap" -> this.target;
// Handle close method: suppress, not valid.