You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/06/20 09:33:28 UTC

[maven] 15/31: Avoid stringly-typed method signatures

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

rfscholte pushed a commit to branch MNG-5760
in repository https://gitbox.apache.org/repos/asf/maven.git

commit a5cbea999e6ddc2f735fc3ee8202e72858f6fd8a
Author: Maarten Mulders <ma...@infosupport.com>
AuthorDate: Mon May 25 15:45:57 2020 +0200

    Avoid stringly-typed method signatures
---
 .../org/apache/maven/execution/DefaultBuildResumptionManager.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/maven-core/src/main/java/org/apache/maven/execution/DefaultBuildResumptionManager.java b/maven-core/src/main/java/org/apache/maven/execution/DefaultBuildResumptionManager.java
index d08478f..4b7831b 100644
--- a/maven-core/src/main/java/org/apache/maven/execution/DefaultBuildResumptionManager.java
+++ b/maven-core/src/main/java/org/apache/maven/execution/DefaultBuildResumptionManager.java
@@ -77,7 +77,7 @@ public class DefaultBuildResumptionManager implements BuildResumptionManager
     @Override
     public void applyResumptionData( MavenExecutionRequest request, MavenProject rootProject )
     {
-        Properties properties = loadResumptionFile( rootProject.getBuild().getDirectory() );
+        Properties properties = loadResumptionFile( Paths.get( rootProject.getBuild().getDirectory() ) );
         applyResumptionProperties( request, properties );
     }
 
@@ -226,10 +226,10 @@ public class DefaultBuildResumptionManager implements BuildResumptionManager
         return true;
     }
 
-    private Properties loadResumptionFile( String rootBuildDirectory )
+    private Properties loadResumptionFile( Path rootBuildDirectory )
     {
         Properties properties = new Properties();
-        Path path = Paths.get( rootBuildDirectory, RESUME_PROPERTIES_FILENAME );
+        Path path = Paths.get( RESUME_PROPERTIES_FILENAME ).resolve( rootBuildDirectory );
         if ( !Files.exists( path ) )
         {
             logger.warn( "The " + path + " file does not exist. The --resume / -r feature will not work." );