Skip to content

Commit f3dd8da

Browse files
author
Brent Christian
committed
8371748: Remove the (empty) ThreadPoolExecutor.finalize() method
Reviewed-by: vklang, jpai, alanb
1 parent 4378789 commit f3dd8da

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,23 +1426,6 @@ public boolean awaitTermination(long timeout, TimeUnit unit)
14261426
}
14271427
}
14281428

1429-
// Override without "throws Throwable" for compatibility with subclasses
1430-
// whose finalize method invokes super.finalize() (as is recommended).
1431-
// Before JDK 11, finalize() had a non-empty method body.
1432-
1433-
/**
1434-
* @implNote Previous versions of this class had a finalize method
1435-
* that shut down this executor, but in this version, finalize
1436-
* does nothing.
1437-
*
1438-
* @deprecated Finalization has been deprecated for removal. See
1439-
* {@link java.lang.Object#finalize} for background information and details
1440-
* about migration options.
1441-
*/
1442-
@Deprecated(since="9", forRemoval=true)
1443-
@SuppressWarnings("removal")
1444-
protected void finalize() {}
1445-
14461429
/**
14471430
* Sets the thread factory used to create new threads.
14481431
*

0 commit comments

Comments
 (0)