mirror of https://github.com/apache/lucene.git
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:
parent
716b4acc74
commit
e7783b8928
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue