commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [commons-compress] branch master updated: prefer Long::valueOf over Long::new
Date Sun, 02 Feb 2020 14:54:23 GMT
This is an automated email from the ASF dual-hosted git repository.

bodewig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git


The following commit(s) were added to refs/heads/master by this push:
     new 6a469b7  prefer Long::valueOf over Long::new
6a469b7 is described below

commit 6a469b7833d5b1a42162dd4d897ebb3031269895
Author: Stefan Bodewig <bodewig@apache.org>
AuthorDate: Sun Feb 2 15:53:13 2020 +0100

    prefer Long::valueOf over Long::new
---
 .../apache/commons/compress/archivers/tar/TarArchiveInputStream.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
index aee7919..c02beda 100644
--- a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
@@ -720,7 +720,7 @@ public class TarArchiveInputStream extends ArchiveInputStream {
                                         // previous GNU.sparse.offset header but but no numBytes
                                         sparseHeaders.add(new TarArchiveStructSparse(offset,
0));
                                     }
-                                    offset = new Long(value);
+                                    offset = Long.valueOf(value);
                                 }
 
                                 // for 0.0 PAX Headers


Mime
View raw message