- Map<Notification, NetconfMessage> preparedMessages = Maps.newHashMapWithExpectedSize(
- notifs.get().getNotificationList().size());
- for (final Notification notification : notifs.get().getNotificationList()) {
+ final Collection<Notification> toCopy = notifs.get().getNotificationList();
+ final Map<Notification, NetconfMessage> preparedMessages = Maps.newHashMapWithExpectedSize(toCopy.size());
+ for (final Notification notification : toCopy) {