Apache Lucene open-source search software
silence unused compiler warning
Robert Muire7783b8928a3
diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/BaseCompoundFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/index/BaseCompoundFormatTestCase.javaindex fd8c94faa9b..910bd11e390 100644--- a/lucene/test-framework/src/java/org/apache/lucene/index/BaseCompoundFormatTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/index/BaseCompoundFormatTestCase.java@@ -202,7 +202,9 @@ public abstract class BaseCompoundFormatTestCase extends BaseIndexFileFormatTestif (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;+ }}}}