private T unpack()

in src/com/pty4j/util/LazyValue.java [38:49]


  private T unpack(@NotNull Pair<T, Throwable> result) throws Exception {
    if (result.getSecond() != null) {
      if (result.getSecond() instanceof Exception) {
        throw (Exception)result.getSecond();
      }
      if (result.getSecond() instanceof Error) {
        throw (Error)result.getSecond();
      }
      throw new RuntimeException("Rethrowing unknown Throwable", result.getSecond());
    }
    return result.getFirst();
  }