From: Jim Procter Date: Mon, 3 Oct 2016 08:21:48 +0000 (+0100) Subject: JAL-2210 use addDBRef to ensure normalisation (just in case the uniprot record is... X-Git-Tag: Release_2_10_0~20^2~6 X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=ef267f8a326a60585a6c36e864d68a1a19617d2e JAL-2210 use addDBRef to ensure normalisation (just in case the uniprot record is not normalised!) --- diff --git a/src/jalview/ws/dbsources/Uniprot.java b/src/jalview/ws/dbsources/Uniprot.java index 4c53ef9..0c2af3b 100644 --- a/src/jalview/ws/dbsources/Uniprot.java +++ b/src/jalview/ws/dbsources/Uniprot.java @@ -267,12 +267,10 @@ public class Uniprot extends DbSourceProxyImpl sequence.addSequenceFeature(sf); } } - // we use setDBRefs to assign refs quickly. - sequence.setDBRefs(dbRefs.toArray(new DBRefEntry[0])); - // need to use ensurePrimaries to reify any refs that should become primary - // refs - DBRefUtils.ensurePrimaries(sequence); // promote any direct refs to primary - // source dbs + for (DBRefEntry dbr : dbRefs) + { + sequence.addDBRef(dbr); + } return sequence; }