< prev index next >

src/java.desktop/share/classes/sun/awt/util/ThreadGroupUtils.java

Print this page
@@ -42,10 +42,11 @@
       * Should be called with {@link sun.security.util.SecurityConstants#MODIFY_THREADGROUP_PERMISSION}
       *
       * @return a root {@code ThreadGroup}
       */
      public static ThreadGroup getRootThreadGroup() {
+         @SuppressWarnings("deprecation")
          ThreadGroup currentTG = Thread.currentThread().getThreadGroup();
          ThreadGroup parentTG = currentTG.getParent();
          while (parentTG != null) {
              currentTG = parentTG;
              parentTG = currentTG.getParent();
< prev index next >