code: public void awaitUninterruptibly() {
          boolean interrupted = Thread.interrupted();
          try {
              while (true) {
                  try {
                      await();
                      break;
                  } catch (InterruptedException ie) {
                      interrupted = true;
                  }
              }
          } finally {
              if (interrupted) Thread.currentThread().interrupt();
          }
      }
docs: Behaves the same way as {@link #await()} except it never throws InterruptedException.
  Thread interrupt status will be preserved if thread have been interrupted inside this method.