--- old/src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpExchange.java 2015-04-28 20:03:53.827593439 +0400 +++ new/src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpExchange.java 2015-04-28 20:03:53.595593439 +0400 @@ -116,9 +116,9 @@ public abstract HttpContext getHttpContext (); /** - * Ends this exchange by doing the following in sequence:

    - *
  1. close the request InputStream, if not already closed

  2. - *
  3. close the response OutputStream, if not already closed.
  4. + * Ends this exchange by doing the following in sequence:
      + *
    1. close the request InputStream, if not already closed;
    2. + *
    3. close the response OutputStream, if not already closed.
    4. *
    */ public abstract void close () ; @@ -163,9 +163,9 @@ * and the numeric response code as specified in this method. The response body length is also specified * as follows. If the response length parameter is greater than zero, this specifies an exact * number of bytes to send and the application must send that exact amount of data. - * If the response length parameter is zero, then chunked transfer encoding is + * If the response length parameter is {@code zero}, then chunked transfer encoding is * used and an arbitrary amount of data may be sent. The application terminates the - * response body by closing the OutputStream. If response length has the value -1 + * response body by closing the OutputStream. If response length has the value {@code -1} * then no response body is being sent. *

    * If the content-length response header has not already been set then @@ -192,7 +192,7 @@ /** * Returns the response code, if it has already been set - * @return the response code, if available. -1 if not available yet. + * @return the response code, if available. {@code -1} if not available yet. */ public abstract int getResponseCode (); @@ -219,7 +219,7 @@ * available. * @param name the name of the attribute to retrieve * @return the attribute object, or null if it does not exist - * @throws NullPointerException if name is null + * @throws NullPointerException if name is {@code null} */ public abstract Object getAttribute (String name) ; @@ -231,9 +231,9 @@ * Each Filter class will document the attributes which they make * available. * @param name the name to associate with the attribute value - * @param value the object to store as the attribute value. null + * @param value the object to store as the attribute value. {@code null} * value is permitted. - * @throws NullPointerException if name is null + * @throws NullPointerException if name is {@code null} */ public abstract void setAttribute (String name, Object value) ; @@ -248,9 +248,9 @@ * required to be) sub-classes of {@link java.io.FilterInputStream} * and {@link java.io.FilterOutputStream}. * @param i the filtered input stream to set as this object's inputstream, - * or null if no change. + * or {@code null} if no change. * @param o the filtered output stream to set as this object's outputstream, - * or null if no change. + * or {@code null} if no change. */ public abstract void setStreams (InputStream i, OutputStream o); @@ -259,7 +259,7 @@ * If an authenticator is set on the HttpContext that owns this exchange, * then this method will return the {@link HttpPrincipal} that represents * the authenticated user for this HttpExchange. - * @return the HttpPrincipal, or null if no authenticator is set. + * @return the HttpPrincipal, or {@code null} if no authenticator is set. */ public abstract HttpPrincipal getPrincipal (); }