From 7b32197915545526c3a692f9eba3952e9f2a50ba Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Thu, 3 Dec 2015 16:52:33 +0000 Subject: [PATCH] LUCENE-6910: remove no-op code in CheckIndex.java (https://scan.coverity.com/projects/5620 CID 120040) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1717804 13f79535-47bb-0310-9956-ffa450edef68 --- .../core/src/java/org/apache/lucene/index/CheckIndex.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java b/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java index be1603d54b5..11f37bec4d3 100644 --- a/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java +++ b/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java @@ -567,7 +567,6 @@ public final class CheckIndex implements Closeable { } String sFormat = ""; - boolean skip = false; result.segmentsFileName = segmentsFileName; result.numSegments = numSegments; @@ -605,11 +604,6 @@ public final class CheckIndex implements Closeable { msg(infoStream, ":"); } - if (skip) { - msg(infoStream, "\nERROR: this index appears to be created by a newer version of Lucene than this tool was compiled on; please re-compile this tool on the matching version of Lucene; exiting"); - result.toolOutOfDate = true; - return result; - } result.newSegments = sis.clone();