From: gmungoc Date: Mon, 22 May 2017 15:40:48 +0000 (+0100) Subject: JAL-2505 use setter not direct access to sf.description X-Git-Tag: Release_2_10_3b1~249 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=477163af61c56522881d6ce5ddc09102f719833c;p=jalview.git JAL-2505 use setter not direct access to sf.description --- diff --git a/src/jalview/io/FeaturesFile.java b/src/jalview/io/FeaturesFile.java index fcf1d70..2ce72ae 100755 --- a/src/jalview/io/FeaturesFile.java +++ b/src/jalview/io/FeaturesFile.java @@ -472,8 +472,11 @@ public class FeaturesFile extends AlignFile implements FeaturesSourceI ParseHtmlBodyAndLinks parsed = new ParseHtmlBodyAndLinks( sf.getDescription(), removeHTML, newline); - sf.description = (removeHTML) ? parsed.getNonHtmlContent() - : sf.description; + if (removeHTML) + { + sf.setDescription(parsed.getNonHtmlContent()); + } + for (String link : parsed.getLinks()) { sf.addLink(link);