@@ -148,7 +148,7 @@ public class ReaderInputStream extends InputStream { | |||||
try { | try { | ||||
in.mark(limit); | in.mark(limit); | ||||
} catch (IOException ioe) { | } catch (IOException ioe) { | ||||
throw new RuntimeException(ioe.getMessage()); | |||||
throw new RuntimeException(ioe.getMessage()); //NOSONAR | |||||
} | } | ||||
} | } | ||||
@@ -586,7 +586,7 @@ public class TarOutputStream extends FilterOutputStream { | |||||
private void failForBigNumber(String field, long value, long maxValue, String additionalMsg) { | private void failForBigNumber(String field, long value, long maxValue, String additionalMsg) { | ||||
if (value < 0 || value > maxValue) { | if (value < 0 || value > maxValue) { | ||||
throw new RuntimeException(field + " '" + value | |||||
throw new RuntimeException(field + " '" + value //NOSONAR | |||||
+ "' is too big ( > " | + "' is too big ( > " | ||||
+ maxValue + " )"); | + maxValue + " )"); | ||||
} | } | ||||
@@ -638,7 +638,7 @@ public class TarOutputStream extends FilterOutputStream { | |||||
write(0); // NUL terminator | write(0); // NUL terminator | ||||
closeEntry(); | closeEntry(); | ||||
} else if (longFileMode != LONGFILE_TRUNCATE) { | } else if (longFileMode != LONGFILE_TRUNCATE) { | ||||
throw new RuntimeException(fieldName + " '" + name | |||||
throw new RuntimeException(fieldName + " '" + name //NOSONAR | |||||
+ "' is too long ( > " | + "' is too long ( > " | ||||
+ TarConstants.NAMELEN + " bytes)"); | + TarConstants.NAMELEN + " bytes)"); | ||||
} | } | ||||
@@ -63,11 +63,11 @@ public class ExtraFieldUtils { | |||||
ZipExtraField ze = (ZipExtraField) c.newInstance(); | ZipExtraField ze = (ZipExtraField) c.newInstance(); | ||||
implementations.put(ze.getHeaderId(), c); | implementations.put(ze.getHeaderId(), c); | ||||
} catch (ClassCastException cc) { | } catch (ClassCastException cc) { | ||||
throw new RuntimeException(c + " doesn\'t implement ZipExtraField"); | |||||
throw new RuntimeException(c + " doesn\'t implement ZipExtraField"); //NOSONAR | |||||
} catch (InstantiationException ie) { | } catch (InstantiationException ie) { | ||||
throw new RuntimeException(c + " is not a concrete class"); | |||||
throw new RuntimeException(c + " is not a concrete class"); //NOSONAR | |||||
} catch (IllegalAccessException ie) { | } catch (IllegalAccessException ie) { | ||||
throw new RuntimeException(c + "\'s no-arg constructor is not public"); | |||||
throw new RuntimeException(c + "\'s no-arg constructor is not public"); //NOSONAR | |||||
} | } | ||||
} | } | ||||
@@ -517,7 +517,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable { | |||||
mergeExtraFields(local, true); | mergeExtraFields(local, true); | ||||
} catch (final ZipException e) { | } catch (final ZipException e) { | ||||
// actually this is not be possible as of Ant 1.8.1 | // actually this is not be possible as of Ant 1.8.1 | ||||
throw new RuntimeException("Error parsing extra fields for entry: " | |||||
throw new RuntimeException("Error parsing extra fields for entry: " //NOSONAR | |||||
+ getName() + " - " + e.getMessage(), e); | + getName() + " - " + e.getMessage(), e); | ||||
} | } | ||||
} | } | ||||
@@ -544,7 +544,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable { | |||||
ExtraFieldUtils.UnparseableExtraField.READ); | ExtraFieldUtils.UnparseableExtraField.READ); | ||||
mergeExtraFields(central, false); | mergeExtraFields(central, false); | ||||
} catch (final ZipException e) { | } catch (final ZipException e) { | ||||
throw new RuntimeException(e.getMessage(), e); | |||||
throw new RuntimeException(e.getMessage(), e); //NOSONAR | |||||
} | } | ||||
} | } | ||||