Man sollte niemals in einer for-Schleife (über eine ArrayList) Elemente aus der ArrayList entfernen. Ist folgendes ebenfalls schlecht?
Java:
for (Map.Entry<ClientWSInformation, MyStreamSettings> entry : map.entrySet()) {
ClientWSInformation clientWSInformation = entry.getKey();
if (clientWSInformation.getUuidForWs() != null && clientWSInformation.getUuidForWs().equals(uuidForWs)) {
map.remove(clientWSInformation);
}
}