Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8365410

Remove unnecessary mention of finalize in ImageIO reader/writer docs

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • client-libs
    • None
    • minimal
    • Doc only change
    • Java API
    • SE

      Summary

      Remove mentions of finalize() from ImageReader and ImageWriter documentation.

      Problem

      javax.imageio.ImageReader and javax.imageio.ImageWriter have dispose() methods which mention finalize() even though these classes are not finalizable.

      Solution

      Remove the mentions of finalize()

      Specification

      javax.imageio.ImageReader

           /**
            * Allows any resources held by this object to be released.  The
      -     * result of calling any other method (other than
      -     * {@code finalize}) subsequent to a call to this method
      +     * result of calling any other method subsequent to a call to this method
            * is undefined.
      public void dispose()

      javax.imageio.ImageWriter

           /**
            * Allows any resources held by this object to be released.  The
      -     * result of calling any other method (other than
      -     * {@code finalize}) subsequent to a call to this method
      +     * result of calling any other method subsequent to a call to this method
            * is undefined.
      public void dispose()

            prr Philip Race
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: