commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r918258 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/TarTestCase.java
Date Tue, 02 Mar 2010 23:28:22 GMT
Author: sebb
Date: Tue Mar  2 23:28:22 2010
New Revision: 918258

URL: http://svn.apache.org/viewvc?rev=918258&view=rev
Log:
Unused variables

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

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/TarTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/TarTestCase.java?rev=918258&r1=918257&r2=918258&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/TarTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/TarTestCase.java
Tue Mar  2 23:28:22 2010
@@ -210,8 +210,7 @@
             tos.putArchiveEntry(in);
             byte[] b = new byte[(int) tmp[1].length()];
             fis = new FileInputStream(tmp[1]);
-            int read;
-            while ((read = fis.read(b)) > 0) {
+            while (fis.read(b) > 0) {
                 tos.write(b);
             }
             fis.close();
@@ -263,8 +262,7 @@
             tos.putArchiveEntry(in);
             byte[] b = new byte[(int) tmp[1].length()];
             fis = new FileInputStream(tmp[1]);
-            int read;
-            while ((read = fis.read(b)) > 0) {
+            while (fis.read(b) > 0) {
                 tos.write(b);
             }
             fis.close();



Mime
View raw message