Skip to content

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

Merged
cstamas merged 1 commit into
apache:maven-resolver-1.9.xfrom
gsmet:MRESOLVER-586-1.9
Aug 2, 2024
Merged

cstamas merged 1 commit into
apache:maven-resolver-1.9.xfrom
gsmet:MRESOLVER-586-1.9

Conversation

@gsmet

@gsmet gsmet commented Jul 13, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown

Resolve #1259

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