[MRESOLVER-547] Just use setVersion by cstamas · Pull Request #483 · apache/maven-resolver (original) (raw)
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 marked this pull request as ready for review
cstamas deleted the maven-resolver-1.9.x-MRESOLVER-547 branch
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 }})