Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8151949

HttpRequest.Builder javadoc need modification for @Throws

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 9
    • 9
    • core-libs

      @Throws NullPointerException need to add HttpRequest.Builder as null checks are available for most of the implementation.

      Ex:-

      public HttpRequest.Builder timeout(TimeUnit timeunit, long timeval) {
          Objects.requireNonNull(timeunit);
      .....


      JavaDoc :-


          timeout

          public abstract HttpRequest.Builder timeout(TimeUnit unit,
                                                      long timeval)

          Sets a timeout for this request. If the response is not received within the specified timeout then a HttpTimeoutException is thrown from HttpRequest.response() or HttpRequest.responseAsync()completes exceptionally with a HttpTimeoutException.

          Parameters:
              unit - the timeout units
              timeval - the number of units to wait for
          Returns:
              this request builder

            michaelm Michael McMahon
            vaibhav Vaibhav Choudhary (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: