[ 
https://issues.apache.org/jira/browse/MRESOLVER-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840875#comment-17840875
 ] 

ASF GitHub Bot commented on MRESOLVER-547:
------------------------------------------

cstamas opened a new pull request, #483:
URL: https://github.com/apache/maven-resolver/pull/483

   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




> BF collector always copies artifacts, even when it should not
> -------------------------------------------------------------
>
>                 Key: MRESOLVER-547
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-547
>             Project: Maven Resolver
>          Issue Type: Improvement
>          Components: Resolver
>            Reporter: Tamas Cservenak
>            Priority: Major
>             Fix For: 2.0.0, 2.0.0-alpha-11
>
>
> Artifact instances are always copied, even when they should not be.
> https://github.com/apache/maven-resolver/blob/9c2e5a1d29254d1c3b49dd25dca310c0cec8e1f6/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/collect/bf/BfDependencyCollector.java#L454



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to