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

Unused private variables in SwingUtilities.java

XMLWordPrintable

      I just happened to notice the following in javax/swing/SwingUtilities.java
      ===

      public class SwingUtilities implements SwingConstants
      {
          // These states are system-wide, rather than AppContext wide.
          private static boolean canAccessEventQueue = false;
          private static boolean eventQueueTested = false;

      ===

      So far as I can see these 2 variables are un-used and have been un-used since at least JDK 8. So clearly no urgency :-), but I should do some more checking and delete if appropriate.

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

              Created:
              Updated:
              Resolved: