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

Resolves#1169: Clean-up, remove deprecated methods, remove Plexus StringUtils in favour of Apache Commons #1170

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

andrzejj0
Copy link
Contributor

Move from Plexus StringUtils to Apache Commons. Improved ArtifactVersions::compareTo and added a stricter one for PluginUpdatesDetails to comfort static code checkers.

@andrzejj0 andrzejj0 added this to the 2.18.0 milestone Oct 27, 2024
@andrzejj0 andrzejj0 linked an issue Oct 27, 2024 that may be closed by this pull request
…ils to Apache Commons. Improved ArtifactVersions::compareTo and added a stricter one for PluginUpdatesDetails to comfort static code checkers.
}

public int hashCode() {
return new HashCodeBuilder(17, 37)
Copy link
Member

Choose a reason for hiding this comment

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

Why not use Objects.hash

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will check!

Copy link
Member

Choose a reason for hiding this comment

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

Dynamic version is for removal: #1158

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've rather been thinking about how long we should keep Mercury and Numeric versions there. That's probably one of the reasons why class VersionComparators is deprecated.

On the other hand, we probably can't remove the class because it has segment utilities which are missing in Maven or Resolver.

@andrzejj0 andrzejj0 merged commit 21a0198 into mojohaus:master Oct 28, 2024
26 checks passed
@andrzejj0 andrzejj0 deleted the cleanup branch October 28, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cleanup Plexus Utils, convergence with Maven 4 step 1
2 participants