silence unused compiler warning

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1634065 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2014-10-24 14:30:33 +00:00
parent 716b4acc74
commit e7783b8928
1 changed files with 3 additions and 1 deletions

View File

@ -202,7 +202,9 @@ public abstract class BaseCompoundFormatTestCase extends BaseIndexFileFormatTest
if (si.info.getUseCompoundFile()) {
try (Directory cfsDir = si.info.getCodec().compoundFormat().getCompoundReader(dir, si.info, newIOContext(random()))) {
for (String cfsFile : cfsDir.listAll()) {
try (IndexInput cfsIn = cfsDir.openInput(cfsFile, IOContext.DEFAULT)) {}
try (IndexInput cfsIn = cfsDir.openInput(cfsFile, IOContext.DEFAULT)) {
assert cfsIn != null;
}
}
}
}