mirror of https://github.com/apache/lucene.git
LUCENE-720: added a few missing close's
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@478241 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
19f90a38ee
commit
a01711b245
|
@ -311,6 +311,7 @@ public class TestBackwardsCompatibility extends TestCase
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cfsReader.close();
|
||||||
assertTrue("could not locate the 'content' field number in the _2.cfs segment", contentFieldIndex != -1);
|
assertTrue("could not locate the 'content' field number in the _2.cfs segment", contentFieldIndex != -1);
|
||||||
|
|
||||||
// Now verify file names:
|
// Now verify file names:
|
||||||
|
@ -329,6 +330,7 @@ public class TestBackwardsCompatibility extends TestCase
|
||||||
if (!Arrays.equals(expected, actual)) {
|
if (!Arrays.equals(expected, actual)) {
|
||||||
fail("incorrect filenames in index: expected:\n " + asString(expected) + "\n actual:\n " + asString(actual));
|
fail("incorrect filenames in index: expected:\n " + asString(expected) + "\n actual:\n " + asString(actual));
|
||||||
}
|
}
|
||||||
|
dir.close();
|
||||||
|
|
||||||
rmDir(outputDir);
|
rmDir(outputDir);
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,6 +75,7 @@ public class TestIndexFileDeleter extends TestCase
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cfsReader.close();
|
||||||
assertTrue("could not locate the 'content' field number in the _2.cfs segment", contentFieldIndex != -1);
|
assertTrue("could not locate the 'content' field number in the _2.cfs segment", contentFieldIndex != -1);
|
||||||
|
|
||||||
String normSuffix = "s" + contentFieldIndex;
|
String normSuffix = "s" + contentFieldIndex;
|
||||||
|
@ -132,6 +133,7 @@ public class TestIndexFileDeleter extends TestCase
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
String[] files2 = dir.list();
|
String[] files2 = dir.list();
|
||||||
|
dir.close();
|
||||||
|
|
||||||
Arrays.sort(files);
|
Arrays.sort(files);
|
||||||
Arrays.sort(files2);
|
Arrays.sort(files2);
|
||||||
|
|
Loading…
Reference in New Issue