Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-8034

ArrayList initialized inside for loop defeats its purpose

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Story Points:
      1
    • Sprint:
      M-CORD SPRINT 11 (Developing)

      Description

      In CfmMepManager.java in method deleteMep(MdId..,..,..): arrayList alreadyHandledDevices is created to check the devices which are handled.
      But, this list is initialized inside the for loop, so in every iteration new list is created and already added deviceId are lost.
      So, need to initialize this outside the for loop.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            schitray Sohit Chitray
            Reporter:
            schitray Sohit Chitray
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: