< prev index next >

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

Print this page
*** 1475,12 ***
  
      /**
       * @implNote Previous versions of this class had a finalize method
       * that shut down this executor, but in this version, finalize
       * does nothing.
       */
!     @Deprecated(since="9")
      protected void finalize() {}
  
      /**
       * Sets the thread factory used to create new threads.
       *
--- 1475,17 ---
  
      /**
       * @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.
       *
< prev index next >