Skip to content

Commit 0741c00

Browse files
authored
Remove duplicated declaration of the AutoCloseable in JpaEntityManager and JpaEntityManagerFactory classes (#2138)
`EntityManager` and `EntityManagerFactory` already extends `AutoCloseable`. Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
1 parent 1a8447e commit 0741c00

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

jpa/org.eclipse.persistence.jpa/src/main/java/org/eclipse/persistence/jpa/JpaEntityManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2025 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
@@ -36,7 +36,7 @@
3636
* @author Gordon Yorke
3737
*/
3838

39-
public interface JpaEntityManager extends jakarta.persistence.EntityManager, AutoCloseable {
39+
public interface JpaEntityManager extends jakarta.persistence.EntityManager {
4040

4141
/**
4242
* This method returns the current session to the requester. The current session

jpa/org.eclipse.persistence.jpa/src/main/java/org/eclipse/persistence/jpa/JpaEntityManagerFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2024 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2025 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
@@ -31,7 +31,7 @@
3131
* </p>
3232
* @see jakarta.persistence.EntityManagerFactory
3333
*/
34-
public interface JpaEntityManagerFactory extends EntityManagerFactory, AutoCloseable {
34+
public interface JpaEntityManagerFactory extends EntityManagerFactory {
3535

3636
/**
3737
* Returns the DatabaseSession that the Factory will be using and

0 commit comments

Comments
 (0)