Skip to content

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

Resolve #1259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants