{
SEQUENCE_AND_LABEL, LABEL_AND_SEQUENCE, NONE
}
-
+
private final AlignmentI alignment;
private boolean showAutocalcAbove;
return 0;
}
};
-
+
/**
* Sort by the specified ordering of sequence-specific annotations.
*
public void sort(AlignmentAnnotation[] alignmentAnnotations,
SequenceAnnotationOrder order)
{
- if (order != SequenceAnnotationOrder.NONE)
- {
- Comparator<? super AlignmentAnnotation> comparator = getComparator(order);
+ Comparator<? super AlignmentAnnotation> comparator = getComparator(order);
- if (alignmentAnnotations != null)
+ if (alignmentAnnotations != null)
+ {
+ synchronized (alignmentAnnotations)
{
- synchronized (alignmentAnnotations)
- {
- Arrays.sort(alignmentAnnotations, comparator);
- }
+ Arrays.sort(alignmentAnnotations, comparator);
}
}
}