< prev index next >

src/jdk.jdi/share/classes/com/sun/tools/jdi/AbstractLauncher.java

Print this page
*** 53,20 ***
  
      public abstract String name();
  
      public abstract String description();
  
!     ThreadGroup grp;
  
      AbstractLauncher() {
          super();
  
!         grp = Thread.currentThread().getThreadGroup();
          ThreadGroup parent = null;
!         while ((parent = grp.getParent()) != null) {
!             grp = parent;
          }
      }
  
      String[] tokenizeCommand(String command, char quote) {
          String quoteStr = String.valueOf(quote); // easier to deal with
  
--- 53,22 ---
  
      public abstract String name();
  
      public abstract String description();
  
!     final ThreadGroup grp;
  
      AbstractLauncher() {
          super();
  
!         @SuppressWarnings("deprecation")
+         ThreadGroup g = Thread.currentThread().getThreadGroup();
          ThreadGroup parent = null;
!         while ((parent = g.getParent()) != null) {
!             g = parent;
          }
+         grp = g;
      }
  
      String[] tokenizeCommand(String command, char quote) {
          String quoteStr = String.valueOf(quote); // easier to deal with
  
< prev index next >