diff options
| author | Stefan Bodewig <bodewig@apache.org> | 2016-12-22 06:30:25 +0100 |
|---|---|---|
| committer | Stefan Bodewig <bodewig@apache.org> | 2016-12-22 06:30:25 +0100 |
| commit | 934adc2ee778bd12f9226b6b287dd34294708361 (patch) | |
| tree | ea42b245cab1fb51e10162b11a4e0bea835af09f /src/main/org/apache/tools/tar | |
| parent | 18877234f21782ea101f0049db2f85907e7f4c68 (diff) | |
| download | ant-934adc2ee778bd12f9226b6b287dd34294708361.tar.gz | |
there is no better choice of a non-generic exception
Diffstat (limited to 'src/main/org/apache/tools/tar')
| -rw-r--r-- | src/main/org/apache/tools/tar/TarOutputStream.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/org/apache/tools/tar/TarOutputStream.java b/src/main/org/apache/tools/tar/TarOutputStream.java index 032f7254f..cacc68631 100644 --- a/src/main/org/apache/tools/tar/TarOutputStream.java +++ b/src/main/org/apache/tools/tar/TarOutputStream.java @@ -586,7 +586,7 @@ public class TarOutputStream extends FilterOutputStream { private void failForBigNumber(String field, long value, long maxValue, String additionalMsg) { if (value < 0 || value > maxValue) { - throw new RuntimeException(field + " '" + value + throw new RuntimeException(field + " '" + value //NOSONAR + "' is too big ( > " + maxValue + " )"); } @@ -638,7 +638,7 @@ public class TarOutputStream extends FilterOutputStream { write(0); // NUL terminator closeEntry(); } else if (longFileMode != LONGFILE_TRUNCATE) { - throw new RuntimeException(fieldName + " '" + name + throw new RuntimeException(fieldName + " '" + name //NOSONAR + "' is too long ( > " + TarConstants.NAMELEN + " bytes)"); } |
