Fix defensive subscriber removal 41/89041/2
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:25 +0000 (08:47 +0200)
commit284187b8872cd3cfb39ea73024ce848bfaa344ee
tree0a4bb3a4ae90f87c975d3680f7e0505c04632925
parent240d3fac65776cb33025b1350baa9cb83d869452
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