[MRESOLVER-547] Just use setVersion by cstamas · Pull Request #483 · apache/maven-resolver (original) (raw)

@cstamas

No need for full copy, Artifact is already immutable. Moreover, the instance may be not DefaultArtifact but something else. And finally, setVersion already have "optimization" to return this if version is same as the one we want to copy with.


https://issues.apache.org/jira/browse/MRESOLVER-547

@cstamas self-assigned this

Apr 25, 2024

@cstamas cstamas marked this pull request as ready for review

April 25, 2024 17:07

@cstamas

@cstamas

@cstamas cstamas deleted the maven-resolver-1.9.x-MRESOLVER-547 branch

April 25, 2024 17:24

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})