You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by mi...@apache.org on 2006/11/22 18:07:01 UTC
svn commit: r478241 - in /lucene/java/trunk/src/test/org/apache/lucene/index:
TestBackwardsCompatibility.java TestIndexFileDeleter.java
Author: mikemccand
Date: Wed Nov 22 09:07:00 2006
New Revision: 478241
URL: http://svn.apache.org/viewvc?view=rev&rev=478241
Log:
LUCENE-720: added a few missing close's
Modified:
lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexFileDeleter.java
Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java?view=diff&rev=478241&r1=478240&r2=478241
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java Wed Nov 22 09:07:00 2006
@@ -311,6 +311,7 @@
break;
}
}
+ cfsReader.close();
assertTrue("could not locate the 'content' field number in the _2.cfs segment", contentFieldIndex != -1);
// Now verify file names:
@@ -329,6 +330,7 @@
if (!Arrays.equals(expected, actual)) {
fail("incorrect filenames in index: expected:\n " + asString(expected) + "\n actual:\n " + asString(actual));
}
+ dir.close();
rmDir(outputDir);
}
Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexFileDeleter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexFileDeleter.java?view=diff&rev=478241&r1=478240&r2=478241
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexFileDeleter.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexFileDeleter.java Wed Nov 22 09:07:00 2006
@@ -75,6 +75,7 @@
break;
}
}
+ cfsReader.close();
assertTrue("could not locate the 'content' field number in the _2.cfs segment", contentFieldIndex != -1);
String normSuffix = "s" + contentFieldIndex;
@@ -132,6 +133,7 @@
writer.close();
String[] files2 = dir.list();
+ dir.close();
Arrays.sort(files);
Arrays.sort(files2);