1448 |
|
/** |
1449 |
|
* Invokes {@code shutdown} when this executor is no longer |
1450 |
|
* referenced and it has no threads. |
1451 |
+ |
* |
1452 |
+ |
* @deprecated The {@code finalize} method has been deprecated. |
1453 |
+ |
* Subclasses that override {@code finalize} in order to perform cleanup |
1454 |
+ |
* should be modified to use alternative cleanup mechanisms and |
1455 |
+ |
* to remove the overriding {@code finalize} method. |
1456 |
+ |
* When overriding the {@code finalize} method, its implementation must explicitly |
1457 |
+ |
* ensure that {@code super.finalize()} is invoked as described in {@link Object#finalize}. |
1458 |
+ |
* See the specification for {@link Object#finalize()} for further |
1459 |
+ |
* information about migration options. |
1460 |
|
*/ |
1461 |
< |
@SuppressWarnings("deprecation") |
1461 |
> |
@Deprecated(since="9") |
1462 |
|
protected void finalize() { |
1463 |
|
shutdown(); |
1464 |
|
} |