1435 |
|
// Before JDK 11, finalize() had a non-empty method body. |
1436 |
|
|
1437 |
|
/** |
1438 |
< |
* @deprecated The {@code finalize} method has been deprecated. |
1439 |
< |
* Subclasses that override {@code finalize} in order to perform cleanup |
1440 |
< |
* should be modified to use alternative cleanup mechanisms and |
1441 |
< |
* to remove the overriding {@code finalize} method. |
1442 |
< |
* When overriding the {@code finalize} method, its implementation must explicitly |
1443 |
< |
* ensure that {@code super.finalize()} is invoked as described in {@link Object#finalize}. |
1444 |
< |
* See the specification for {@link Object#finalize()} for further |
1445 |
< |
* information about migration options. |
1438 |
> |
* @implNote Previous versions of this class had a finalize method |
1439 |
> |
* that shut down this executor, but in this version, finalize |
1440 |
> |
* does nothing. |
1441 |
|
*/ |
1442 |
|
@Deprecated(since="9") |
1443 |
|
protected void finalize() {} |