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

Review use of enhanced for loop for thread safety

    XMLWordPrintable

    Details

    • Type: Task
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Dev and Dep
    • Labels:
      None

      Description

      I may have gone too far in my enthusiasm for replacing old-style iterations e.g.
          for (int renderIndex = 0; renderIndex < renderOrder.length; renderIndex++)
          {
              String type = renderOrder[renderIndex];
          }
      with an enhanced for loop e.g.
          for (String type : renderOrder)

      Worth documenting safe usage, and reviewing code for any places this may have introduced thread-safety issues.

        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: