You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/12/28 15:00:03 UTC

[GitHub] [maven] rfscholte commented on a change in pull request #421: Artifact.getPath() and .setPath()

rfscholte commented on a change in pull request #421:
URL: https://github.com/apache/maven/pull/421#discussion_r549377500



##########
File path: maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java
##########
@@ -86,6 +87,16 @@
 
     void setFile( File destination );
 
+    default Path getPath()
+    {
+        return this.getFile().toPath();

Review comment:
       If `getFile()` is `null`, it should not throw an NPE




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org