From af80a017ae3c81a328f92ded8176a5a5eaee677c Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Fri, 28 Apr 2017 15:41:15 +0300 Subject: [PATCH] minor cleanup --- .../modules/decompiler/vars/VarVersionsProcessor.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/vars/VarVersionsProcessor.java b/src/org/jetbrains/java/decompiler/modules/decompiler/vars/VarVersionsProcessor.java index 4544004..6300289 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/vars/VarVersionsProcessor.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/vars/VarVersionsProcessor.java @@ -130,8 +130,7 @@ public class VarVersionsProcessor { Map mapExprentMaxTypes = typeProcessor.getMapExprentMaxTypes(); Map mapExprentMinTypes = typeProcessor.getMapExprentMinTypes(); - Set set = new HashSet<>(mapExprentMinTypes.keySet()); - for (VarVersionPair paar : set) { + for (VarVersionPair paar : new ArrayList<>(mapExprentMinTypes.keySet())) { VarType type = mapExprentMinTypes.get(paar); VarType maxType = mapExprentMaxTypes.get(paar); @@ -238,8 +237,7 @@ public class VarVersionsProcessor { Map mapOriginalVarIndices = new HashMap<>(); // map var-version pairs on new var indexes - Set set = new HashSet<>(mapExprentMinTypes.keySet()); - for (VarVersionPair pair : set) { + for (VarVersionPair pair : new ArrayList<>(mapExprentMinTypes.keySet())) { if (pair.version >= 0) { int newIndex = pair.version == 1 ? pair.var : counters.getCounterAndIncrement(CounterContainer.VAR_COUNTER);