Author: sebb
Date: Thu Feb 26 19:48:21 2009
New Revision: 748284
URL: http://svn.apache.org/viewvc?rev=748284&view=rev
Log:
Unused variable
Modified:
commons/sandbox/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
Modified:
commons/sandbox/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java?rev=748284&r1=748283&r2=748284&view=diff
==============================================================================
---
commons/sandbox/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
(original)
+++
commons/sandbox/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
Thu Feb 26 19:48:21 2009
@@ -97,7 +97,6 @@
*/
protected File createArchive(String archivename) throws Exception {
ArchiveOutputStream out = null;
- ArchiveInputStream ais = null;
try {
File temp = File.createTempFile("test", "." + archivename);
@@ -144,7 +143,6 @@
return temp;
} finally {
if(out != null) out.close();
- if(ais != null) ais.close();
}
}
@@ -168,7 +166,7 @@
result.mkdir();
ArchiveEntry entry = null;
- while((entry = (ArchiveEntry)in.getNextEntry()) != null) {
+ while((entry = in.getNextEntry()) != null) {
File outfile = new File(result.getCanonicalPath() + "/result/" +
entry.getName());
outfile.getParentFile().mkdirs();
OutputStream out = new FileOutputStream(outfile);