ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ThreadPoolExecutor.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ThreadPoolExecutor.java (file contents):
Revision 1.173 by dl, Sat Apr 15 00:12:38 2017 UTC vs.
Revision 1.174 by jsr166, Mon Apr 17 23:27:44 2017 UTC

# Line 1448 | Line 1448 | public class ThreadPoolExecutor extends
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      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines