From 62ec2b1b98d5ce144f1ac41815b94293a52e91e6 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 22 Dec 2015 19:56:41 +0100 Subject: [PATCH] Fixed ConcurrentModificationException --- .../java/de/juplo/plugins/hibernate/ModificationTracker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1