changed Map iterations to use entrySet when both key and value are used

This commit is contained in:
Stefaan Dutry
2017-11-13 21:13:27 +01:00
parent 09ede58150
commit 0bde78cc36
17 changed files with 64 additions and 57 deletions
@@ -101,8 +101,7 @@ public abstract class JSONCleaner {
boolean allow = !isDefaultBlock();
if (includesExcludesMap != null) {
for (String currRule : includesExcludesMap.keySet()) {
Filter f = includesExcludesMap.get(currRule);
for (Filter f : includesExcludesMap.values()) {
if (f.pattern.matcher(ognl).matches()) {
allow = f.allow;
}