Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-2598

Don't expose sequence character array

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.3
    • Component/s: Datamodel
    • Labels:

      Description

      Sequence.getSequence() currently returns the internal character array, which could therefore potentially be externally modified. It should instead return a copy of the array (like String.toCharArray()). This gives safe encapsulation of any updates to the sequence, which is important to ensure the integrity of a SequenceCursor.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gmungoc Mungo Carstairs
              Reporter:
              gmungoc Mungo Carstairs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: