This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch maven-3.9.x
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-3.9.x by this push:
     new 5bc322ae9 [MNG-7726] Maven 3.9.0 resolves properties in file profile 
activation incorrectly (#1053)
5bc322ae9 is described below

commit 5bc322ae93c235d43d6aee819016b3e8fbfd1268
Author: Tamas Cservenak <[email protected]>
AuthorDate: Sat Mar 11 22:49:58 2023 +0100

    [MNG-7726] Maven 3.9.0 resolves properties in file profile activation 
incorrectly (#1053)
    
    There was a typo: the stream contains entries, so e.getKey and
    e.getValue is needed.
    
    ---
    
    https://issues.apache.org/jira/browse/MNG-7726
---
 .../org/apache/maven/model/profile/DefaultProfileActivationContext.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileActivationContext.java
 
b/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileActivationContext.java
index 43f006460..fa3ed33b5 100644
--- 
a/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileActivationContext.java
+++ 
b/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileActivationContext.java
@@ -197,7 +197,7 @@ public class DefaultProfileActivationContext implements 
ProfileActivationContext
         if (projectProperties != null) {
             this.projectProperties = projectProperties.entrySet().stream()
                     .collect(collectingAndThen(
-                            toMap(k -> String.valueOf(k.getKey()), v -> 
String.valueOf(v)),
+                            toMap(e -> String.valueOf(e.getKey()), e -> 
String.valueOf(e.getValue())),
                             Collections::unmodifiableMap));
         } else {
             this.projectProperties = Collections.emptyMap();

Reply via email to