From: Kai Moritz Date: Tue, 22 Dec 2015 18:56:41 +0000 (+0100) Subject: Fixed ConcurrentModificationException X-Git-Tag: hibernate-maven-plugin-2.0.0~6 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=62ec2b1b98d5ce144f1ac41815b94293a52e91e6;p=hibernate4-maven-plugin Fixed ConcurrentModificationException --- diff --git a/src/main/java/de/juplo/plugins/hibernate/ModificationTracker.java b/src/main/java/de/juplo/plugins/hibernate/ModificationTracker.java index f103ad1a..7b5791f1 100644 --- a/src/main/java/de/juplo/plugins/hibernate/ModificationTracker.java +++ b/src/main/java/de/juplo/plugins/hibernate/ModificationTracker.java @@ -126,13 +126,13 @@ public class ModificationTracker boolean modified() { - for (String property : properties.keySet()) + for (String property : new HashSet(properties.keySet())) if (!propertyNames.contains(property)) { modified = true; properties.remove(property); } - for (String clazz : classes.keySet()) + for (String clazz : new HashSet(classes.keySet())) if (!classNames.contains(clazz)) { modified = true;