< prev index next >

src/java.base/share/classes/java/util/concurrent/ForkJoinWorkerThread.java

Print this page
*** 87,11 ***
       *
       * @param group if non-null, the thread group for this thread
       * @param pool the pool this thread works in
       * @throws NullPointerException if pool is null
       */
!     /* TODO: protected */ ForkJoinWorkerThread(ThreadGroup group, ForkJoinPool pool) {
          this(group, pool, false, false);
      }
  
      /**
       * Creates a ForkJoinWorkerThread operating in the given pool.
--- 87,11 ---
       *
       * @param group if non-null, the thread group for this thread
       * @param pool the pool this thread works in
       * @throws NullPointerException if pool is null
       */
!     protected ForkJoinWorkerThread(ThreadGroup group, ForkJoinPool pool) {
          this(group, pool, false, false);
      }
  
      /**
       * Creates a ForkJoinWorkerThread operating in the given pool.

*** 187,10 ***
--- 187,11 ---
      static final class InnocuousForkJoinWorkerThread extends ForkJoinWorkerThread {
          /** The ThreadGroup for all InnocuousForkJoinWorkerThreads */
          @SuppressWarnings("removal")
          private static final ThreadGroup innocuousThreadGroup =
              AccessController.doPrivileged(new PrivilegedAction<>() {
+                 @SuppressWarnings("deprecation")
                  public ThreadGroup run() {
                      ThreadGroup group = Thread.currentThread().getThreadGroup();
                      for (ThreadGroup p; (p = group.getParent()) != null; )
                          group = p;
                      return new ThreadGroup(
< prev index next >