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

Closes gh-29892
This commit is contained in:
Juergen Hoeller
2023-01-31 16:03:26 +01:00
parent 64219783f6
commit 7c9dca3d2e

View File

@@ -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 {
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
}
}