Browse Source

Declare no-op close() method in order to avoid container-triggered shutdown call

Closes gh-29892
pull/29918/head
Juergen Hoeller 3 years ago
parent
commit
7c9dca3d2e
  1. 7
      spring-core/src/main/java/org/springframework/core/task/support/ExecutorServiceAdapter.java

7
spring-core/src/main/java/org/springframework/core/task/support/ExecutorServiceAdapter.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -90,4 +90,9 @@ public class ExecutorServiceAdapter extends AbstractExecutorService { @@ -90,4 +90,9 @@ public class ExecutorServiceAdapter extends AbstractExecutorService {
return false;
}
// @Override on JDK 19
public void close() {
// no-op in order to avoid container-triggered shutdown call which would lead to exception logging
}
}

Loading…
Cancel
Save