From ef267f8a326a60585a6c36e864d68a1a19617d2e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 3 Oct 2016 09:21:48 +0100 Subject: [PATCH] JAL-2210 use addDBRef to ensure normalisation (just in case the uniprot record is not normalised!) --- src/jalview/ws/dbsources/Uniprot.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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; } -- 1.7.10.2