Print this page


Split Close
Expand all
Collapse all
          --- old/test/java/util/concurrent/FutureTask/BlockingTaskExecutor.java
          +++ new/test/java/util/concurrent/FutureTask/BlockingTaskExecutor.java
↓ open down ↓ 79 lines elided ↑ open up ↑
  80   80              thread.interrupt();
  81   81              thread.join(1000);
  82   82              throw new Error("invokeAll stuck");
  83   83          }
  84   84      }
  85   85  
  86   86      /**
  87   87       * A helper class with a method to wait for a notification.
  88   88       *
  89   89       * The notification is received via the
  90      -     * <code>sendNotification</code> method.
       90 +     * {@code sendNotification} method.
  91   91       */
  92   92      static class NotificationReceiver {
  93   93          /** Has the notifiee been notified? */
  94   94          boolean notified = false;
  95   95  
  96   96          /**
  97   97           * Notify the notification receiver.
  98   98           */
  99   99          public synchronized void sendNotification() {
 100  100              notified = true;
↓ open down ↓ 63 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX