lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject svn commit: r1717756 - /lucene/dev/trunk/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java
Date Thu, 03 Dec 2015 13:07:35 GMT
Author: cpoerschke
Date: Thu Dec  3 13:07:34 2015
New Revision: 1717756

URL: http://svn.apache.org/viewvc?rev=1717756&view=rev
Log:
LUCENE-6910: remove line.length(); statement in TrecContentSource.java (https://scan.coverity.com/projects/5620
CID 120628)

Modified:
    lucene/dev/trunk/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java

Modified: lucene/dev/trunk/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java?rev=1717756&r1=1717755&r2=1717756&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java
(original)
+++ lucene/dev/trunk/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java
Thu Dec  3 13:07:34 2015
@@ -147,8 +147,6 @@ public class TrecContentSource extends C
         continue;
       }
 
-      line.length();
-
       if (lineStart!=null && line.startsWith(lineStart)) {
         if (collectMatchLine) {
           buf.append(sep).append(line);



Mime
View raw message