[ 
https://issues.apache.org/jira/browse/COMPRESS-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebb resolved COMPRESS-684.
---------------------------
    Resolution: Fixed

Fixed in

https://github.com/apache/commons-compress/commit/01e80d89baf153342c2340aaaa5151f76623721e

> Why use assert rather than throwing an Exception
> ------------------------------------------------
>
>                 Key: COMPRESS-684
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-684
>             Project: Commons Compress
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Major
>
> The code here uses assert:
> [https://github.com/apache/commons-compress/blob/b6c6b1e71087ae3e31d1024069084512a243eed7/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java#L207]
> This seems odd for user code, as the assert may be disabled.
> It would be more usual to throw an Exception instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to