RFR: 8297778: Modernize and improve module jdk.sctp [v9]

Daniel Fuchs dfuchs at openjdk.org
Tue Dec 6 14:11:12 UTC 2022


On Tue, 6 Dec 2022 09:18:39 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> This PR proposes a variety of modernisations to the `jdk.sctp` module.
>> 
>> During the fix of https://bugs.openjdk.org/browse/JDK-8296024, several improvement areas were identified including: 
>> 
>> * Replacing duplicate code segments 
>> * Making certain fields final 
>> * Using enhanced switch 
>> * Using records 
>> * Fixing typos 
>> * Marking fields participating in serialisation with `@Serial` 
>> * Modernizing toString() implementations 
>> * Using pattern matching 
>> * Using diamond operators
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Reformat code

I will sponsor this PR after the RDP 1 fork.

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

PR: https://git.openjdk.org/jdk/pull/11418


More information about the net-dev mailing list