JAL-3690 List.copyOf() workaround
[jalview.git] / src / jalview / analysis / AlignmentAnnotationUtils.java
index dd5e080..5c2d936 100644 (file)
@@ -245,8 +245,8 @@ public class AlignmentAnnotationUtils
    * association as necessary.
    * 
    * @param newAnnot
-   *          - annotation row associated with an alignment sequence to be
-   *          propagated to its dataset sequence.
+   *          - annotation row associated with a sequence to be propagated to
+   *          its reference annotation
    * @param typeName
    *          - label used to match existing row
    * @param calcId
@@ -257,7 +257,7 @@ public class AlignmentAnnotationUtils
   {
     if (newAnnot.sequenceRef != null)
     {
-      SequenceI dsseq = newAnnot.sequenceRef.getDatasetSequence();
+      SequenceI dsseq = newAnnot.sequenceRef;
       while (dsseq.getDatasetSequence() != null)
       {
         dsseq = dsseq.getDatasetSequence();