Skip to content

Commit c00dbc6

Browse files
committed
Fix merge commit
1 parent d9a42a5 commit c00dbc6

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/orm/jpa/EntityManagerFactoryBuilder.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ public class EntityManagerFactoryBuilder {
5858

5959
private AsyncTaskExecutor bootstrapExecutor;
6060

61-
private EntityManagerFactoryBeanCallback callback;
62-
6361
/**
6462
* Create a new instance passing in the common pieces that will be shared if multiple
6563
* EntityManagerFactory instances are created.
@@ -107,15 +105,6 @@ public void setBootstrapExecutor(AsyncTaskExecutor bootstrapExecutor) {
107105
this.bootstrapExecutor = bootstrapExecutor;
108106
}
109107

110-
/**
111-
* An optional callback for new entity manager factory beans.
112-
* @param callback the entity manager factory bean callback
113-
*/
114-
@Deprecated
115-
public void setCallback(EntityManagerFactoryBeanCallback callback) {
116-
this.callback = callback;
117-
}
118-
119108
/**
120109
* A fluent builder for a LocalContainerEntityManagerFactoryBean.
121110
*/
@@ -214,7 +203,6 @@ public Builder jta(boolean jta) {
214203
return this;
215204
}
216205

217-
@SuppressWarnings("deprecation")
218206
public LocalContainerEntityManagerFactoryBean build() {
219207
LocalContainerEntityManagerFactoryBean entityManagerFactoryBean = new LocalContainerEntityManagerFactoryBean();
220208
if (EntityManagerFactoryBuilder.this.persistenceUnitManager != null) {
@@ -249,24 +237,9 @@ public LocalContainerEntityManagerFactoryBean build() {
249237
entityManagerFactoryBean.setBootstrapExecutor(
250238
EntityManagerFactoryBuilder.this.bootstrapExecutor);
251239
}
252-
if (EntityManagerFactoryBuilder.this.callback != null) {
253-
EntityManagerFactoryBuilder.this.callback
254-
.execute(entityManagerFactoryBean);
255-
}
256240
return entityManagerFactoryBean;
257241
}
258242

259243
}
260244

261-
/**
262-
* A callback for new entity manager factory beans created by a Builder.
263-
*/
264-
@FunctionalInterface
265-
@Deprecated
266-
public interface EntityManagerFactoryBeanCallback {
267-
268-
void execute(LocalContainerEntityManagerFactoryBean factory);
269-
270-
}
271-
272245
}

0 commit comments

Comments
 (0)