< prev index next >

src/java.desktop/share/classes/sun/awt/SunToolkit.java

Print this page
*** 274,10 ***
--- 274,11 ---
       * Create a new AppContext, along with its EventQueue, for a
       * new ThreadGroup.  Browser code, for example, would use this
       * method to create an AppContext & EventQueue for an Applet.
       */
      public static AppContext createNewAppContext() {
+         @SuppressWarnings("deprecation")
          ThreadGroup threadGroup = Thread.currentThread().getThreadGroup();
          return createNewAppContext(threadGroup);
      }
  
      static final AppContext createNewAppContext(ThreadGroup threadGroup) {
< prev index next >