You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2025/05/28 11:58:28 UTC
(maven) 01/01: Remove unnecessary call of .toString() on a string variable
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch redu
in repository https://gitbox.apache.org/repos/asf/maven.git
commit cc45891557f2c0c87315ecd4f8cfda5f21bed3e2
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Wed May 28 07:58:16 2025 -0400
Remove unnecessary call of .toString() on a string variable
---
.../maven-impl/src/main/java/org/apache/maven/impl/SettingsUtilsV4.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/SettingsUtilsV4.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/SettingsUtilsV4.java
index 8a5d1e81a2..a4df59a29f 100644
--- a/impl/maven-impl/src/main/java/org/apache/maven/impl/SettingsUtilsV4.java
+++ b/impl/maven-impl/src/main/java/org/apache/maven/impl/SettingsUtilsV4.java
@@ -154,7 +154,7 @@ public static Profile convertToSettingsProfile(org.apache.maven.api.model.Profil
profile.properties(modelProfile.getProperties().entrySet().stream()
.collect(Collectors.toMap(
- e -> e.getKey().toString(), e -> e.getValue().toString())));
+ e -> e.getKey(), e -> e.getValue())));
profile.location("properties", toLocation(modelProfile.getLocation("properties")));
List<org.apache.maven.api.model.Repository> repos = modelProfile.getRepositories();