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

[MRESOLVER-586] Avoid copying the type default properties map - 1.9.x #535

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

gsmet
Copy link
Contributor

@gsmet gsmet commented Jul 13, 2024

Note

I needed a backport for my internal testing and it wasn't clean so here it is.

When we don't have specific properties for a DefaultArtifact, we can just reuse the type default properties map as it's readonly and immutable.
The patch contains some additional changes as I renamed the method and parameters to make them more specific so that the method wouldn't be used for things that wouldn't be safe.

When we don't have specific properties for a DefaultArtifact, we can
just reuse the type default properties map as it's readonly and
immutable.
The patch contains some additional changes as I renamed the method
and parameters to make them more specific so that the method
wouldn't be used for things that wouldn't be safe.
@gsmet gsmet changed the title [MRESOLVER-586] Avoid copying the type default properties map [MRESOLVER-586] Avoid copying the type default properties map - 1.9.x Jul 16, 2024
@cstamas cstamas merged commit f1be3b9 into apache:maven-resolver-1.9.x Aug 2, 2024
11 checks passed
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.

2 participants