Fix defensive subscriber removal 84/89184/1
authorwsx25289 <10200860@zte.com.cn>
Thu, 9 Apr 2020 07:29:44 +0000 (03:29 -0400)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 21 Apr 2020 06:47:05 +0000 (08:47 +0200)
commit6552531d20a6ab5d0cd3f7c9102f00421016e159
treed634f0426acdf4b0df4e59c4710bc850d70c8607
parentf1dc9ceca2c5569b7dfd3e8aaf7cdcc810134e68
Fix defensive subscriber removal

Attempting to modify the collection while iterating over it
results in ConcurrentModificationException. Use an explicit
iterator and Iterator.remove() to prevent it.

JIRA: NETCONF-664
Change-Id: I6206dfdd896307f83420cfb3201d1125adbf9a07
Signed-off-by: Wsx25289 <10200860@zte.com.cn>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/AbstractCommonSubscriber.java