You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/11/01 15:01:10 UTC

[commons-compress] 05/08: No need to throw IOException from this private method.

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

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

commit e61abc3e03482e3e08c5aaaa1c4ad57ddf6be383
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 1 08:58:46 2020 -0500

    No need to throw IOException from this private method.
---
 .../apache/commons/compress/archivers/tar/TarArchiveInputStream.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

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 cecef21..1f532b7 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
@@ -604,7 +604,7 @@ public class TarArchiveInputStream extends ArchiveInputStream {
      * giving the offset and size of the data block it describes.
      * @throws IOException
      */
-    private void paxHeaders() throws IOException{
+    private void paxHeaders() throws IOException {
         List<TarArchiveStructSparse> sparseHeaders = new ArrayList<>();
         final Map<String, String> headers = parsePaxHeaders(this, sparseHeaders);
 
@@ -636,9 +636,8 @@ public class TarArchiveInputStream extends ArchiveInputStream {
      *
      * @param sparseMap the sparse map string consisting of comma-separated values "offset,size[,offset-1,size-1...]"
      * @return sparse headers parsed from sparse map
-     * @throws IOException
      */
-    private List<TarArchiveStructSparse> parsePAX01SparseHeaders(final String sparseMap) throws IOException {
+    private List<TarArchiveStructSparse> parsePAX01SparseHeaders(final String sparseMap) {
         final List<TarArchiveStructSparse> sparseHeaders = new ArrayList<>();
         final String[] sparseHeaderStrings = sparseMap.split(",");