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

Add forRemoval to deprecated classes and method in javax/swing/plaf/basic

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P4
    • 19
    • client-libs
    • None
    • behavioral
    • medium
    • Java API
    • SE

    Description

      Summary

      Add forRemoval annotations to the deprecations added in jdk17

      Problem

      Some methods were deprecated in jdk17 with the intention to be removed in a future release.

      Solution

      Add forRemoval = true to indicate these methods will be removed in future release.

      Specification

      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java

       /**
            * Obsolete - not used. This method is a no-op.
            * @param e list data event
            * @deprecated Obsolete method, not used anymore.
            */
      -    @Deprecated(since = "17")
      +    @Deprecated(since = "17", forRemoval = true)
           public void intervalAdded(ListDataEvent e) {
           }
      
           /**
            * Obsolete - not used. This method is a no-op.
      @@ -235,11 +235,11 @@
           /**
            * Obsolete - not used. This method is a no-op.
            * @param e list data event
            * @deprecated Obsolete method, not used anymore.
            */
      -    @Deprecated(since = "17")
      +    @Deprecated(since = "17", forRemoval = true)
           public void intervalRemoved(ListDataEvent e) {
           }
      
           /**
            * Sorts a list of files.
      @@ -255,11 +255,11 @@
            * @return a comparison of the file names
            * @param a a file
            * @param b another file
            * @deprecated Obsolete method, not used anymore.
            */
      -    @Deprecated(since = "17")
      +    @Deprecated(since = "17", forRemoval = true)
           protected boolean lt(File a, File b) {

      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicMenuItemUI.java

            */
      -    @Deprecated(since = "17")
      +    @Deprecated(since = "17", forRemoval = true)
           protected class MouseInputHandler implements MouseInputListener {

      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollPaneUI.java

          */
      -    @Deprecated(since = "17")
      +    @Deprecated(since = "17", forRemoval = true)
           public class ViewportChangeHandler implements ChangeListener
           {
               /**
                * Constructs a {@code ViewportChangeHandler}.
                */
      
            */
      -    @Deprecated(since = "17")
      +    @Deprecated(since = "17", forRemoval = true)
           public class HSBChangeListener implements ChangeListener
           {
               /**
                * Constructs a {@code HSBChangeListener}.
                */
      
            */
      -    @Deprecated(since = "17")
      +    @Deprecated(since = "17", forRemoval = true)
           public class VSBChangeListener implements ChangeListener
           {
               /**
                * Constructs a {@code VSBChangeListener}.
                */
      
            */
      -    @Deprecated(since = "17")
      +    @Deprecated(since = "17", forRemoval = true)
           public class PropertyChangeHandler implements PropertyChangeListene

      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java

            */
      -    @Deprecated(since = "17")
      +    @Deprecated(since = "17", forRemoval = true)
           protected JFrame createFloatingFrame(JToolBar toolbar) {

      Attachments

        Issue Links

          Activity

            People

              psadhukhan Prasanta Sadhukhan
              trebari Tejpal Rebari (Inactive)
              Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: