JAL-2805 added static method for logging duplications when using map.put
[jalview.git] / src / jalview / ext / archaeopteryx / AptxNodeAssociation.java
index 5d126f3..d5262c5 100644 (file)
@@ -50,8 +50,6 @@ public class AptxNodeAssociation
   {
     SequenceIdMatcher algnIds = new SequenceIdMatcher(alignSequences);
 
-
-
     List<PhylogenyNode> leaves = tree.getExternalNodes();
     SequenceI nodeSequence;
     String nodeSequenceName;
@@ -67,8 +65,12 @@ public class AptxNodeAssociation
                 .createForesterSequence(nodeSequence, true);
         treeNode.getNodeData().setSequence(foresterNodeSeq);
 
-        alignmentWithNodes.put(nodeSequence, treeNode);
-        nodesWithAlignment.put(treeNode, nodeSequence);
+        ExternalTreeBuilderI.putWithDuplicationCheck(alignmentWithNodes,
+                nodeSequence, treeNode);
+        ExternalTreeBuilderI.putWithDuplicationCheck(nodesWithAlignment,
+                treeNode, nodeSequence);
+
+
       }
 
     }