From fd21ffd2dbeeeaa269b3fc111566db984e1b672c Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 2 Aug 2016 16:22:43 +0100 Subject: [PATCH] JAL-2046 additional logic to suppress spurious implementation-error warnings --- src/jalview/datamodel/Sequence.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } } -- 1.7.10.2