From 84c4f9ab210d6736c2a3c07626f0287b2038063e Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Fri, 21 Apr 2017 12:33:31 +0100 Subject: [PATCH] JAL-2485 Bug fix to filter out uniprot response header row by excluding the first row --- src/jalview/fts/service/uniprot/UniProtFTSRestClient.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 1.7.10.2