lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r478241 - in /lucene/java/trunk/src/test/org/apache/lucene/index: TestBackwardsCompatibility.java TestIndexFileDeleter.java
Date Wed, 22 Nov 2006 17:07:01 GMT
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);



Mime
View raw message