RFR: 8314261: Make fields final in sun.net.www [v4]

Andrey Turbanov aturbanov at openjdk.org
Wed Aug 16 07:52:09 UTC 2023


On Tue, 15 Aug 2023 15:16:46 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

>> A few classes in `sun.net.www` package have non-final fields which could easily be marked `final`.
>
> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8314261: Make fields final in sun.net.www
>   
>   fix B5045306 test failure

src/java.base/share/classes/sun/net/www/http/ChunkedOutputStream.java line 63:

> 61:     /* the chunk size we use */
> 62:     private final int preferredChunkDataSize;
> 63:     private final int preferedHeaderSize;

Is it a typo `prefered` ?
Other fields use `preferred` prefix.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14977#discussion_r1295510868


More information about the net-dev mailing list