From 34c65f091af8f126480eb3a6554b9a72c9046987 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Thu, 3 Dec 2015 13:07:34 +0000 Subject: [PATCH] LUCENE-6910: remove line.length(); statement in TrecContentSource.java (https://scan.coverity.com/projects/5620 CID 120628) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1717756 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/benchmark/byTask/feeds/TrecContentSource.java | 2 -- 1 file changed, 2 deletions(-) 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.java index 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);