From: tcofoegbu Date: Fri, 21 Apr 2017 11:33:31 +0000 (+0100) Subject: JAL-2485 Bug fix to filter out uniprot response header row by excluding the first row X-Git-Tag: Release_2_10_2~3^2~129 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=84c4f9ab210d6736c2a3c07626f0287b2038063e;p=jalview.git JAL-2485 Bug fix to filter out uniprot response header row by excluding the first row --- diff --git a/src/jalview/fts/service/uniprot/UniProtFTSRestClient.java b/src/jalview/fts/service/uniprot/UniProtFTSRestClient.java index 27bfca8..a23df4c 100644 --- a/src/jalview/fts/service/uniprot/UniProtFTSRestClient.java +++ b/src/jalview/fts/service/uniprot/UniProtFTSRestClient.java @@ -157,14 +157,14 @@ public class UniProtFTSRestClient extends FTSRestClient if (foundDataRow != null && foundDataRow.length > 0) { result = new ArrayList(); - String titleRow = getDataColumnsFieldsAsTabDelimitedString(uniprotRestRequest - .getWantedFields()); - // System.out.println(">>>>Title row : " + titleRow); + boolean firstRow = true; for (String dataRow : foundDataRow) { - if (dataRow.equalsIgnoreCase(titleRow)) + // The first data row is usually the header data. This should be + // filtered out from the rest of the data See: JAL-2485 + if (firstRow) { - // System.out.println(">>>>>>>>>> matched!!!"); + firstRow = false; continue; } // System.out.println(dataRow);