Skip to content

Java: Builder naming consistency #2575

Merged
dsgrieve merged 2 commits intomicrosoft:experimental-javafrom
dsgrieve:dsgrieve/builders
Aug 29, 2023
Merged

Java: Builder naming consistency #2575
dsgrieve merged 2 commits intomicrosoft:experimental-javafrom
dsgrieve:dsgrieve/builders

Conversation

@dsgrieve
Copy link
Copy Markdown
Contributor

Motivation and Context

Issue #2437 and issue #2346

Description

  • Changed setXyz methods to withXyz
  • Changed SKBuilders methods to match the builder return type
  • Organized BuilderSingleton to make it easier to maintain, IMHO
  • Consistency between Buildable's

Contribution Checklist

@dsgrieve dsgrieve requested a review from a team as a code owner August 25, 2023 17:48
@shawncal shawncal added the java Issue or PR regarding Java code label Aug 25, 2023
@shawncal shawncal changed the title Builder naming consistency Java: Builder naming consistency Aug 25, 2023
@dsgrieve dsgrieve merged commit beeed7b into microsoft:experimental-java Aug 29, 2023
johnoliver pushed a commit to johnoliver/semantic-kernel that referenced this pull request Jun 5, 2024
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
Issue microsoft#2437 and issue microsoft#2346

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

- Changed setXyz methods to withXyz
- Changed SKBuilders methods to match the builder return type
- Organized BuilderSingleton to make it easier to maintain, IMHO
- Consistency between Buildable's

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
johnoliver pushed a commit to johnoliver/semantic-kernel that referenced this pull request Jun 5, 2024
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
Issue microsoft#2437 and issue microsoft#2346

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

- Changed setXyz methods to withXyz
- Changed SKBuilders methods to match the builder return type
- Organized BuilderSingleton to make it easier to maintain, IMHO
- Consistency between Buildable's

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

java Issue or PR regarding Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Java: Naming conventions in Builder interface Java: Naming conventions in SKBuilders class

4 participants