Skip to content

Commit 519f6d1

Browse files
committed
fix immutable collection
1 parent 1df3200 commit 519f6d1

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

key.core/src/main/java/de/uka/ilkd/key/rule/OneStepSimplifier.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
* SPDX-License-Identifier: GPL-2.0-only */
44
package de.uka.ilkd.key.rule;
55

6-
import java.util.ArrayList;
7-
import java.util.LinkedHashMap;
8-
import java.util.LinkedHashSet;
9-
import java.util.List;
10-
import java.util.Map;
11-
import java.util.Set;
6+
import java.util.*;
127

138
import de.uka.ilkd.key.java.Services;
149
import de.uka.ilkd.key.logic.JTerm;
@@ -124,8 +119,8 @@ private ImmutableList<Taclet> tacletsForRuleSet(Proof proof, String ruleSetName,
124119
ImmutableList<Taclet> result = ImmutableSLList.nil();
125120

126121
// collect apps present in all open goals
127-
Set<NoPosTacletApp> allApps =
128-
proof.openGoals().head().ruleAppIndex().tacletIndex().allNoPosTacletApps();
122+
Set<NoPosTacletApp> allApps = new HashSet<>(
123+
proof.openGoals().head().ruleAppIndex().tacletIndex().allNoPosTacletApps());
129124
for (Goal goal : proof.openGoals().tail()) {
130125
allApps.retainAll(goal.ruleAppIndex().tacletIndex().allNoPosTacletApps());
131126
}

0 commit comments

Comments
 (0)