minor cleanup
This commit is contained in:
@@ -130,8 +130,7 @@ public class VarVersionsProcessor {
|
|||||||
Map<VarVersionPair, VarType> mapExprentMaxTypes = typeProcessor.getMapExprentMaxTypes();
|
Map<VarVersionPair, VarType> mapExprentMaxTypes = typeProcessor.getMapExprentMaxTypes();
|
||||||
Map<VarVersionPair, VarType> mapExprentMinTypes = typeProcessor.getMapExprentMinTypes();
|
Map<VarVersionPair, VarType> mapExprentMinTypes = typeProcessor.getMapExprentMinTypes();
|
||||||
|
|
||||||
Set<VarVersionPair> set = new HashSet<>(mapExprentMinTypes.keySet());
|
for (VarVersionPair paar : new ArrayList<>(mapExprentMinTypes.keySet())) {
|
||||||
for (VarVersionPair paar : set) {
|
|
||||||
VarType type = mapExprentMinTypes.get(paar);
|
VarType type = mapExprentMinTypes.get(paar);
|
||||||
VarType maxType = mapExprentMaxTypes.get(paar);
|
VarType maxType = mapExprentMaxTypes.get(paar);
|
||||||
|
|
||||||
@@ -238,8 +237,7 @@ public class VarVersionsProcessor {
|
|||||||
Map<Integer, Integer> mapOriginalVarIndices = new HashMap<>();
|
Map<Integer, Integer> mapOriginalVarIndices = new HashMap<>();
|
||||||
|
|
||||||
// map var-version pairs on new var indexes
|
// map var-version pairs on new var indexes
|
||||||
Set<VarVersionPair> set = new HashSet<>(mapExprentMinTypes.keySet());
|
for (VarVersionPair pair : new ArrayList<>(mapExprentMinTypes.keySet())) {
|
||||||
for (VarVersionPair pair : set) {
|
|
||||||
|
|
||||||
if (pair.version >= 0) {
|
if (pair.version >= 0) {
|
||||||
int newIndex = pair.version == 1 ? pair.var : counters.getCounterAndIncrement(CounterContainer.VAR_COUNTER);
|
int newIndex = pair.version == 1 ? pair.var : counters.getCounterAndIncrement(CounterContainer.VAR_COUNTER);
|
||||||
|
|||||||
Reference in New Issue
Block a user