From: Jim Procter Date: Tue, 2 Aug 2016 15:22:43 +0000 (+0100) Subject: JAL-2046 additional logic to suppress spurious implementation-error warnings X-Git-Tag: Release_2_10_0~119 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fd21ffd2dbeeeaa269b3fc111566db984e1b672c;p=jalview.git JAL-2046 additional logic to suppress spurious implementation-error warnings --- diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 31ffdfd..a857712 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -303,8 +303,13 @@ public class Sequence extends ASequence implements SequenceI } else { - System.err + if (datasetSequence.getSequenceFeatures() != features + && datasetSequence.getSequenceFeatures() != null + && datasetSequence.getSequenceFeatures().length > 0) + { + System.err .println("Warning: JAL-2046 side effect ? Possible implementation error: overwriting dataset sequence features by setting sequence features on alignment"); + } datasetSequence.setSequenceFeatures(features); } }