RFR: 8253470: Javadoc clean up in Filter and Headers [v4]

Patrick Concannon pconcannon at openjdk.java.net
Thu Oct 1 12:03:19 UTC 2020


On Wed, 30 Sep 2020 10:21:22 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Patrick Concannon has updated the pull request with a new target base due to a merge or a rebase. The incremental
>> webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits
>> since the last revision:
>>  - 8253470: further formatting changes added
>>  - Merge remote-tracking branch 'origin/master' into JDK-8253470
>>  - Merge remote-tracking branch 'origin/master' into JDK-8253470
>>  - 8253470: Javadoc clean up in Filter and Headers
>
> src/jdk.httpserver/share/classes/com/sun/net/httpserver/Filter.java line 40:
> 
>> 38:  * are organised in chains, and are associated with {@link HttpContext} instances.
>> 39:  *
>> 40:  * <p> Each Filter in the chain, invokes the next filter within its own
> 
> Here `Each Filter` should be either `Each filter` or `Each {@code Filter}`

Change made in commit 4de7e6c - `Each Filter` --> `Each {@code Filter}`

> src/jdk.httpserver/share/classes/com/sun/net/httpserver/Filter.java line 41:
> 
>> 39:  *
>> 40:  * <p> Each Filter in the chain, invokes the next filter within its own
>> 41:  * {@link #doFilter(HttpExchange, Chain)} implementation. The final Filter in
> 
> Same here for `the final Filter` - should be either `the final filter` or `the final {@code Filter}`

Change made in commit 4de7e6c - `the final Filter` --> `the final {@code Filter}`

> src/jdk.httpserver/share/classes/com/sun/net/httpserver/Filter.java line 109:
> 
>> 107:      *     <li> Filter the request body or the response body, by creating suitable
>> 108:      *     filter streams and calling {@link HttpExchange#setStreams(InputStream, OutputStream)}.
>> 109:      *     <li> Set attribute Objects in the exchange, which other filters or
> 
> `Set attribute objects` ...

Change made in commit 4de7e6c

> src/jdk.httpserver/share/classes/com/sun/net/httpserver/Headers.java line 62:
> 
>> 60:  *     <li>{@link #add(String,String)} adds the given header value to the list for the given key
>> 61:  *     <li>{@link #set(String,String)} sets the given header field to the single value given
>> 62:  *     overwriting any existing values in the value list
> 
> For consistency, either:
>   - no item should end with a punctuation sign
>   - or all of them should end with a coma, except the last that should end with a full stop.
>   - or all of them should end with a full stop.
> 
> I am not sure what is the best, but it is weird that the first item ends with a full stop and the other two don't.

Change made in commit 4de7e6c - all lines now end with a full stop

-------------

PR: https://git.openjdk.java.net/jdk/pull/429


More information about the net-dev mailing list