mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8371748: Remove the (empty) ThreadPoolExecutor.finalize() method
Reviewed-by: vklang, jpai, alanb
This commit is contained in:
parent
4378789029
commit
f3dd8daaa9
@ -1426,23 +1426,6 @@ public class ThreadPoolExecutor extends AbstractExecutorService {
|
||||
}
|
||||
}
|
||||
|
||||
// Override without "throws Throwable" for compatibility with subclasses
|
||||
// whose finalize method invokes super.finalize() (as is recommended).
|
||||
// Before JDK 11, finalize() had a non-empty method body.
|
||||
|
||||
/**
|
||||
* @implNote Previous versions of this class had a finalize method
|
||||
* that shut down this executor, but in this version, finalize
|
||||
* does nothing.
|
||||
*
|
||||
* @deprecated Finalization has been deprecated for removal. See
|
||||
* {@link java.lang.Object#finalize} for background information and details
|
||||
* about migration options.
|
||||
*/
|
||||
@Deprecated(since="9", forRemoval=true)
|
||||
@SuppressWarnings("removal")
|
||||
protected void finalize() {}
|
||||
|
||||
/**
|
||||
* Sets the thread factory used to create new threads.
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user