Skip to content

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
@jira-importer
Copy link

Resolve #9925

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.

4 participants