< prev index next >

src/java.rmi/share/classes/sun/rmi/runtime/NewThreadAction.java

Print this page
@@ -53,10 +53,11 @@
      /** cached reference to the system (root) thread group */
      @SuppressWarnings("removal")
      static final ThreadGroup systemThreadGroup =
          AccessController.doPrivileged(new PrivilegedAction<ThreadGroup>() {
              public ThreadGroup run() {
+                 @SuppressWarnings("deprecation")
                  ThreadGroup group = Thread.currentThread().getThreadGroup();
                  ThreadGroup parent;
                  while ((parent = group.getParent()) != null) {
                      group = parent;
                  }

@@ -67,11 +68,11 @@
      /**
       * special child of the system thread group for running tasks that
       * may execute user code, so that the security policy for threads in
       * the system thread group will not apply
       */
-     @SuppressWarnings("removal")
+     @SuppressWarnings({"deprecation", "removal"})
      static final ThreadGroup userThreadGroup =
          AccessController.doPrivileged(new PrivilegedAction<ThreadGroup>() {
              public ThreadGroup run() {
                  return new ThreadGroup(systemThreadGroup, "RMI Runtime");
              }
< prev index next >