Skip to content
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

[MNG-8514] Improve VersionRangeResolverResult #2039

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Jan 10, 2025

JIRA issue: MNG-8514

Aims at superseding #2036

List<Version> versions = session.resolveVersionRange(coords, repositories);
if (versions.isEmpty()) {
Optional<Version> result = session.resolveHighestVersion(coords, repositories);
if (result.isEmpty()) {
Copy link
Contributor Author

@gnodet gnodet Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is silly, we should use Optional.orThrow(...) here

Copy link
Member

@CrazyHZM CrazyHZM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gnodet gnodet changed the title [MNG-8485] Improve VersionRangeResolverResult Improve VersionRangeResolverResult Jan 13, 2025
@gnodet gnodet changed the title Improve VersionRangeResolverResult [MNG-8514] Improve VersionRangeResolverResult Jan 13, 2025
@gnodet gnodet merged commit 28f6047 into apache:master Jan 13, 2025
13 checks passed
@gnodet gnodet added this to the 4.0.0-rc-3 milestone Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants