Apache Solr open-source search software
LUCENE-6910: remove line.length(); statement in TrecContentSource.java (https://scan.coverity.com/projects/5620 CID 120628)
Christine Poerschke34c65f091af8
diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.javaindex 21ade912777..0790035a928 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java@@ -147,8 +147,6 @@ public class TrecContentSource extends ContentSource {continue;}- line.length();-if (lineStart!=null && line.startsWith(lineStart)) {if (collectMatchLine) {buf.append(sep).append(line);