Integrated: 8297778: Modernize and improve module jdk.sctp

Per Minborg pminborg at openjdk.org
Fri Dec 9 09:51:36 UTC 2022


On Tue, 29 Nov 2022 16:46:43 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

This pull request has now been integrated.

Changeset: cb766c55
Author:    Per Minborg <pminborg at openjdk.org>
Committer: Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/cb766c553557b718683d492280beba772d81bb5b
Stats:     388 lines in 19 files changed: 49 ins; 128 del; 211 mod

8297778: Modernize and improve module jdk.sctp

Reviewed-by: dfuchs, stsypanov

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

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


More information about the net-dev mailing list