< prev index next >

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

Print this page
@@ -53,20 +53,22 @@
  
      public abstract String name();
  
      public abstract String description();
  
-     ThreadGroup grp;
+     final ThreadGroup grp;
  
      AbstractLauncher() {
          super();
  
-         grp = Thread.currentThread().getThreadGroup();
+         @SuppressWarnings("deprecation")
+         ThreadGroup g = Thread.currentThread().getThreadGroup();
          ThreadGroup parent = null;
-         while ((parent = grp.getParent()) != null) {
-             grp = parent;
+         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 >