mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
14.21.2009 a415256cc798baf286d618a2c9ddd427c26a518d
sdk/src/org/opends/sdk/AbstractConnectionFactory.java
@@ -59,8 +59,8 @@
  /**
   * {@inheritDoc}
   */
  public abstract <P> ConnectionFuture<? extends C> getAsynchronousConnection(
      ConnectionResultHandler<? super C, P> handler, P p);
  public abstract ConnectionFuture<? extends C> getAsynchronousConnection(
      ConnectionResultHandler<? super C> handler);
@@ -104,8 +104,7 @@
  protected final C blockingGetAsynchronousConnection()
      throws ErrorResultException
  {
    ConnectionFuture<? extends C> future =
        getAsynchronousConnection(null, null);
    ConnectionFuture<? extends C> future = getAsynchronousConnection(null);
    try
    {
      return future.get();
@@ -115,10 +114,9 @@
      // Cancel the request if possible.
      future.cancel(false);
      Result result =
          Responses.newResult(ResultCode.CLIENT_SIDE_CONNECT_ERROR)
              .setCause(e)
              .setDiagnosticMessage(e.getLocalizedMessage());
      Result result = Responses.newResult(
          ResultCode.CLIENT_SIDE_CONNECT_ERROR).setCause(e)
          .setDiagnosticMessage(e.getLocalizedMessage());
      throw ErrorResultException.wrap(result);
    }
  }