8373101: JdkClient and JdkServer test classes ignore namedGroups field#28664
8373101: JdkClient and JdkServer test classes ignore namedGroups field#28664mpdonova wants to merge 3 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back mdonovan! A progress list of the required criteria for merging this PR into |
|
@mpdonova This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. 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 4 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
|
|
||
| if (builder.getNamedGroups() != null | ||
| && builder.getNamedGroups().length > 0) { | ||
| NamedGroup[] namedGroups = builder.getNamedGroups(); |
There was a problem hiding this comment.
Minor: Do you think moving it outside of the if statement and making the if statement call namedGroups directly might be a bit easier to read? Otherwise you're calling the same action 3 times in a row
| String[] namedGroupStrs = new String[namedGroups.length]; | ||
| for (int i = 0 ; i < namedGroups.length ; ++i) { | ||
| namedGroupStrs[i] = namedGroups[i].name; | ||
| } |
There was a problem hiding this comment.
nit: what do you think?
| } | |
| String[] namedGroupStrs = Arrays.stream(namedGroups) | |
| .map(NamedGroup::name) | |
| .toArray(String[]::new); |
|
/integrate |
|
Going to push as commit 1ae4a6c.
Your commit was automatically rebased without conflicts. |
This PR updates a couple test utility classes, JdkClient and JdkServer. Theseclasses extend AbstractPeer which contains a
namedGroupfield however, when creating/configuring the objects, the field is ignored. This PR just makes sure to include named groups if they are specified.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28664/head:pull/28664$ git checkout pull/28664Update a local copy of the PR:
$ git checkout pull/28664$ git pull https://git.openjdk.org/jdk.git pull/28664/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28664View PR using the GUI difftool:
$ git pr show -t 28664Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28664.diff
Using Webrev
Link to Webrev Comment