New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8254996: make jdk.net.UnixDomainPrincipal a record class #1668
Conversation
|
@pconcannon The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks fine to me Patrick. First top-level record class in the JDK!
@pconcannon This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the
|
/csr needed |
@Michael-Mc-Mahon this pull request will not be integrated until the CSR request JDK-8257823 for issue JDK-8254996 has been approved. |
/integrate |
@pconcannon Pushed as commit 6dd06ad. |
Hi,
Could someone please review my code for JDK-8254996: 'make jdk.net.UnixDomainPrincipal a record class'?
jdk.net.UnixDomainPrincipal
is a simple immutable data class that requires boilerplate methods for access. However, these methods and fields are susceptible to trivial mistakes and add to the verbosity of the class.This fix replaces the data class with a record class, a new type in JDK 16, making the code more concise and easier to maintain. This code is binary compatible with the original. For the generated API doc change, please refer to the specdiff attached to the CSR.
CSR : https://bugs.openjdk.java.net/browse/JDK-8257823
Kind regards,
Patrick
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/1668/head:pull/1668
$ git checkout pull/1668