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

Unnecessary instruction in javax.swing.plaf.basic.BasicLookAndFeel.uninitialize()

    Details

    • Subcomponent:
    • Resolved In Build:
      b28
    • CPU:
      generic
    • OS:
      generic

      Description

      In method javax.swing.plaf.basic.BasicLookAndFeel.uninitialize() is an assignment to a local object called tk, but it is never used in the method.

         /**
           * UIManager.setLookAndFeel calls this method just
           * before we're replaced by a new default look and feel.
           */
          public void uninitialize() {
              Toolkit tk = Toolkit.getDefaultToolkit(); // <------ here
              if(invocator != null) {
                  AccessController.doPrivileged(invocator);
                  invocator = null;
              }
          }

      ###@###.### 2005-2-14 14:23:49 GMT

        Attachments

          Activity

            People

            • Assignee:
              kizune Alexander Zuev
              Reporter:
              jloefflm Johann Löfflmann (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: