| @@ -846,7 +846,7 @@ public class TarEntry implements TarConstants { | |||||
| writeEntryHeader(outbuf, TarUtils.FALLBACK_ENCODING, false); | writeEntryHeader(outbuf, TarUtils.FALLBACK_ENCODING, false); | ||||
| } catch (IOException ex2) { | } catch (IOException ex2) { | ||||
| // impossible | // impossible | ||||
| throw new RuntimeException(ex2); | |||||
| throw new RuntimeException(ex2); //NOSONAR | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -932,7 +932,7 @@ public class TarEntry implements TarConstants { | |||||
| parseTarHeader(header, TarUtils.DEFAULT_ENCODING, true); | parseTarHeader(header, TarUtils.DEFAULT_ENCODING, true); | ||||
| } catch (IOException ex2) { | } catch (IOException ex2) { | ||||
| // not really possible | // not really possible | ||||
| throw new RuntimeException(ex2); | |||||
| throw new RuntimeException(ex2); //NOSONAR | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -1095,7 +1095,8 @@ public class TarEntry implements TarConstants { | |||||
| try { | try { | ||||
| buffer1 = expected.getBytes("ASCII"); | buffer1 = expected.getBytes("ASCII"); | ||||
| } catch (UnsupportedEncodingException e) { | } catch (UnsupportedEncodingException e) { | ||||
| throw new RuntimeException(e); // Should not happen | |||||
| // Should not happen | |||||
| throw new RuntimeException(e); //NOSONAR | |||||
| } | } | ||||
| return isEqual(buffer1, 0, buffer1.length, buffer, offset, length, | return isEqual(buffer1, 0, buffer1.length, buffer, offset, length, | ||||
| false); | false); | ||||
| @@ -265,7 +265,7 @@ public class TarUtils { | |||||
| return parseName(buffer, offset, length, FALLBACK_ENCODING); | return parseName(buffer, offset, length, FALLBACK_ENCODING); | ||||
| } catch (final IOException ex2) { | } catch (final IOException ex2) { | ||||
| // impossible | // impossible | ||||
| throw new RuntimeException(ex2); | |||||
| throw new RuntimeException(ex2); //NOSONAR | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -324,7 +324,7 @@ public class TarUtils { | |||||
| FALLBACK_ENCODING); | FALLBACK_ENCODING); | ||||
| } catch (final IOException ex2) { | } catch (final IOException ex2) { | ||||
| // impossible | // impossible | ||||
| throw new RuntimeException(ex2); | |||||
| throw new RuntimeException(ex2); //NOSONAR | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -54,7 +54,7 @@ public abstract class AbstractUnicodeExtraField implements ZipExtraField { | |||||
| try { | try { | ||||
| unicodeName = text.getBytes("UTF-8"); | unicodeName = text.getBytes("UTF-8"); | ||||
| } catch (final UnsupportedEncodingException e) { | } catch (final UnsupportedEncodingException e) { | ||||
| throw new RuntimeException("FATAL: UTF-8 encoding not supported.", | |||||
| throw new RuntimeException("FATAL: UTF-8 encoding not supported.", //NOSONAR | |||||
| e); | e); | ||||
| } | } | ||||
| } | } | ||||
| @@ -346,7 +346,7 @@ public class AsiExtraField implements ZipExtraField, UnixStat, Cloneable { | |||||
| return cloned; | return cloned; | ||||
| } catch (CloneNotSupportedException cnfe) { | } catch (CloneNotSupportedException cnfe) { | ||||
| // impossible | // impossible | ||||
| throw new RuntimeException(cnfe); | |||||
| throw new RuntimeException(cnfe); //NOSONAR | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -188,7 +188,7 @@ public final class GeneralPurposeBit implements Cloneable { | |||||
| return super.clone(); | return super.clone(); | ||||
| } catch (CloneNotSupportedException ex) { | } catch (CloneNotSupportedException ex) { | ||||
| // impossible | // impossible | ||||
| throw new RuntimeException("GeneralPurposeBit is not Cloneable?", ex); | |||||
| throw new RuntimeException("GeneralPurposeBit is not Cloneable?", ex); //NOSONAR | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -190,7 +190,7 @@ public final class ZipLong implements Cloneable { | |||||
| return super.clone(); | return super.clone(); | ||||
| } catch (CloneNotSupportedException cnfe) { | } catch (CloneNotSupportedException cnfe) { | ||||
| // impossible | // impossible | ||||
| throw new RuntimeException(cnfe); | |||||
| throw new RuntimeException(cnfe); //NOSONAR | |||||
| } | } | ||||
| } | } | ||||
| @@ -155,7 +155,7 @@ public final class ZipShort implements Cloneable { | |||||
| return super.clone(); | return super.clone(); | ||||
| } catch (CloneNotSupportedException cnfe) { | } catch (CloneNotSupportedException cnfe) { | ||||
| // impossible | // impossible | ||||
| throw new RuntimeException(cnfe); | |||||
| throw new RuntimeException(cnfe); //NOSONAR | |||||
| } | } | ||||
| } | } | ||||