< prev index next >

src/java.management/share/classes/java/lang/management/MemoryMXBean.java

Print this page
@@ -205,13 +205,19 @@
  public interface MemoryMXBean extends PlatformManagedObject {
      /**
       * Returns the approximate number of objects for which
       * finalization is pending.
       *
+      * @deprecated Finalization has been deprecated for removal.  See
+      * {@link java.lang.Object#finalize} for details.
+      * 
       * @return the approximate number objects for which finalization
-      * is pending.
+      * is pending. If this MemoryMXBean contains information about a JVM in
+      * which finalization has been disabled or removed, this method always
+      * returns zero.
       */
+     @Deprecated(since="18")
      public int getObjectPendingFinalizationCount();
  
      /**
       * Returns the current memory usage of the heap that
       * is used for object allocation.  The heap consists
< prev index next >