bodewig commented on a change in pull request #97:
URL: https://github.com/apache/commons-compress/pull/97#discussion_r429556041



##########
File path: 
src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
##########
@@ -695,6 +784,15 @@ public void setModTime(final Date time) {
         modTime = time.getTime() / MILLIS_PER_SECOND;
     }
 
+    /**
+     * Set this entry's modification time.
+     *
+     * @param time This entry's new modification time.
+     */
+    public void setModTime(final FileTime time) {

Review comment:
       please add a since tag

##########
File path: 
src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
##########
@@ -724,11 +822,26 @@ public boolean isCheckSumOK() {
      * Get this entry's file.
      *
      * <p>This method is only useful for entries created from a {@code
-     * File} but not for entries read from an archive.</p>
+     * File} or {@code Path} but not for entries read from an archive.</p>
      *
-     * @return This entry's file.
+     * @return This entry's file or null if the entry was not created from a 
file.
      */
     public File getFile() {
+        if (file == null) {
+            return null;
+        }
+        return file.toFile();
+    }
+
+    /**
+     * Get this entry's file.
+     *
+     * <p>This method is only useful for entries created from a {@code
+     * File} or {@code Path} but not for entries read from an archive.</p>
+     *
+     * @return This entry's file or null if the entry was not created from a 
file.
+     */
+    public Path getPath() {

Review comment:
       please add a since tag




----------------------------------------------------------------
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:
[email protected]


Reply via email to