From 892ddc47076853e27036f40b32aff416fd6bc500 Mon Sep 17 00:00:00 2001 From: Kobata Date: Mon, 2 Jun 2014 21:04:28 -0400 Subject: [PATCH] Don't overwrite existing AccessChange when adding duplicate. This made the call to merge completely pointless. --- src/main/java/net/md_5/specialsource/AccessMap.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/md_5/specialsource/AccessMap.java b/src/main/java/net/md_5/specialsource/AccessMap.java index 670a2a9..7381c49 100644 --- a/src/main/java/net/md_5/specialsource/AccessMap.java +++ b/src/main/java/net/md_5/specialsource/AccessMap.java @@ -142,7 +142,9 @@ public class AccessMap { System.out.println("INFO: merging AccessMap " + key + " from " + map.get(key) + " with " + accessChange); map.get(key).merge(accessChange); } - map.put(key, accessChange); + else { + map.put(key, accessChange); + } } public int applyClassAccess(String className, int access) {