Skip to content

Refactor toOptions method for vendor-specific autoconfiguration properties#6248

Closed
nicolaskrier wants to merge 1 commit into
spring-projects:mainfrom
nicolaskrier:refactor-to-options
Closed

Refactor toOptions method for vendor-specific autoconfiguration properties#6248
nicolaskrier wants to merge 1 commit into
spring-projects:mainfrom
nicolaskrier:refactor-to-options

Conversation

@nicolaskrier
Copy link
Copy Markdown
Contributor

@nicolaskrier nicolaskrier commented Jun 1, 2026

Description

  • Remove unnecessary null checks,
  • Make some with methods nullable for option builder,
  • Handle default values in options constructor,
  • Rename with methods from N to n.

Proposed milestone

2.0.0-RC1

Related work

#6218

@nicolaskrier nicolaskrier force-pushed the refactor-to-options branch 2 times, most recently from b27ce9e to 96e1a09 Compare June 2, 2026 18:17
…rties

- Remove unnecessary null cheks
- Make some with methods nullable for option builder
- Handle default values in options constructor
- Rename with methods from N to n

See spring-projects#6218
Signed-off-by: Nicolas Krier <7557886+nicolaskrier@users.noreply.github.com>
@nicolaskrier nicolaskrier force-pushed the refactor-to-options branch from 96e1a09 to 91dcae8 Compare June 2, 2026 18:18
@sdeleuze sdeleuze self-assigned this Jun 4, 2026
@sdeleuze sdeleuze added this to the 2.0.0-RC1 milestone Jun 4, 2026
sdeleuze pushed a commit to sdeleuze/spring-ai that referenced this pull request Jun 4, 2026
…rties

- Remove unnecessary null cheks
- Make some with methods nullable for option builder
- Handle default values in options constructor

See spring-projects#6218
Closes spring-projects#6248
Signed-off-by: Nicolas Krier <7557886+nicolaskrier@users.noreply.github.com>
Signed-off-by: Sébastien Deleuze <sdeleuze@users.noreply.github.com>
sdeleuze pushed a commit to sdeleuze/spring-ai that referenced this pull request Jun 4, 2026
…rties

- Remove unnecessary null cheks
- Make some with methods nullable for option builder
- Handle default values in options constructor

See spring-projects#6218
Closes spring-projects#6248
Signed-off-by: Nicolas Krier <7557886+nicolaskrier@users.noreply.github.com>
Signed-off-by: Sébastien Deleuze <sdeleuze@users.noreply.github.com>
@sdeleuze sdeleuze closed this in e88398c Jun 4, 2026
@sdeleuze
Copy link
Copy Markdown
Contributor

sdeleuze commented Jun 4, 2026

Thanks, merged with the N() changes that I will handle via a dedicated issue for more visibility in the release note (it was already in my TODO for RC1 to change it).

@nicolaskrier
Copy link
Copy Markdown
Contributor Author

You're welcome and thank you for the feedback! I’ll align with your approach and split such impactful changes into a dedicated PR next time.

@nicolaskrier nicolaskrier deleted the refactor-to-options branch June 4, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants