gnodet commented on code in PR #1208:
URL: https://github.com/apache/maven/pull/1208#discussion_r1323637084


##########
maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java:
##########
@@ -86,9 +86,9 @@ public ToolchainPrivate createToolchain(ToolchainModel model) 
throws Misconfigur
             throw new MisconfiguredToolchainException(
                     "Java toolchain without the " + 
JavaToolchainImpl.KEY_JAVAHOME + " configuration element.");
         }
-        File normal = new File(FileUtils.normalize(javahome.getValue()));
+        File normal = Paths.get(javahome.getValue()).normalize().toFile();

Review Comment:
   Fixed



##########
maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainImpl.java:
##########
@@ -53,7 +53,7 @@ public String toString() {
     }
 
     public String findTool(String toolName) {
-        File toRet = findTool(toolName, new 
File(FileUtils.normalize(getJavaHome())));
+        File toRet = findTool(toolName, 
Paths.get(getJavaHome()).normalize().toFile());

Review Comment:
   Fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to