commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r922560 - in /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers: ArTestCase.java CpioTestCase.java ZipTestCase.java
Date Sat, 13 Mar 2010 13:38:46 GMT
Author: sebb
Date: Sat Mar 13 13:38:45 2010
New Revision: 922560

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

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ArTestCase.java
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/CpioTestCase.java
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ZipTestCase.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ArTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ArTestCase.java?rev=922560&r1=922559&r2=922560&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ArTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ArTestCase.java
Sat Mar 13 13:38:45 2010
@@ -279,8 +279,7 @@ public final class ArTestCase extends Ab
             aos.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) {
                 aos.write(b);
             }
             fis.close();
@@ -333,8 +332,7 @@ public final class ArTestCase extends Ab
             aos.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) {
                 aos.write(b);
             }
             fis.close();

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/CpioTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/CpioTestCase.java?rev=922560&r1=922559&r2=922560&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/CpioTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/CpioTestCase.java
Sat Mar 13 13:38:45 2010
@@ -205,8 +205,7 @@ public final class CpioTestCase extends 
             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();
@@ -259,8 +258,7 @@ public final class CpioTestCase extends 
             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();

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ZipTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ZipTestCase.java?rev=922560&r1=922559&r2=922560&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ZipTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ZipTestCase.java
Sat Mar 13 13:38:45 2010
@@ -287,8 +287,7 @@ public final class ZipTestCase extends A
             zos.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) {
                 zos.write(b);
             }
             fis.close();
@@ -336,8 +335,7 @@ public final class ZipTestCase extends A
             zos.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) {
                 zos.write(b);
             }
             fis.close();



Mime
View raw message