yakovsh commented on code in PR #433:
URL: https://github.com/apache/commons-compress/pull/433#discussion_r1389745283


##########
src/test/java/org/apache/commons/compress/compressors/DetectCompressorTest.java:
##########
@@ -129,9 +140,13 @@ private InputStream createStreamFor(final String fileName, 
final int memoryLimit
     }
 
     private String detect(final String testFileName) throws IOException, 
CompressorException {
+        return detect(testFileName, null);
+    }
+
+    private String detect(final String testFileName, final Set<String> 
compressorNames) throws IOException, CompressorException {
         try (InputStream is = new BufferedInputStream(
                 Files.newInputStream(getFile(testFileName).toPath()))) {
-            return CompressorStreamFactory.detect(is);
+            return (compressorNames != null) ? 
CompressorStreamFactory.detect(is, compressorNames) : 
CompressorStreamFactory.detect(is);

Review Comment:
   will do



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to