commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r761477 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
Date Thu, 02 Apr 2009 23:35:18 GMT
Author: sebb
Date: Thu Apr  2 23:35:17 2009
New Revision: 761477

URL: http://svn.apache.org/viewvc?rev=761477&view=rev
Log:
Tar autodetect now works for existing test files

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java?rev=761477&r1=761476&r2=761477&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
Thu Apr  2 23:35:17 2009
@@ -247,10 +247,7 @@
         final InputStream is = new FileInputStream(archive);
         try {
             final BufferedInputStream buf = new BufferedInputStream(is);
-            final ArchiveInputStream in =
-                archive.getName().endsWith(".tar") ? // tar does not autodetect at present
-                    factory.createArchiveInputStream("tar", buf) :        
-                    factory.createArchiveInputStream(buf);
+            final ArchiveInputStream in = factory.createArchiveInputStream(buf);
             this.checkArchiveContent(in, expected);
         } finally {
             is.close();



Mime
View raw message