Merge pull request #186 from sdutry/sonar-entrySet

changed Map iterations to use entrySet when both key and value are used
This commit is contained in:
Stefaan Dutry
2017-12-01 20:46:00 +01:00
committed by GitHub
18 changed files with 73 additions and 62 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;
}