Skip to content

Commit a846fa2

Browse files
Ensure default option for pruning/disposing of cache sources is set properly (#3901)
2 parents d92ce58 + c429f13 commit a846fa2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

keyext.caching/src/main/java/de/uka/ilkd/key/gui/plugins/caching/settings/CachingSettingsProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public CachingSettingsProvider() {
8080
When a referenced proof is pruned, this is what happens to
8181
all cached branches that reference it.""",
8282
0, x -> {
83-
}, PRUNE_REOPEN, PRUNE_COPY);
83+
}, PRUNE_COPY, PRUNE_REOPEN);
8484
}
8585

8686
@Override

keyext.caching/src/main/java/de/uka/ilkd/key/gui/plugins/caching/settings/ProofCachingSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ public class ProofCachingSettings extends AbstractPropertiesSettings {
3939
* Behaviour when disposing a proof that is referenced elsewhere.
4040
*/
4141
private final AbstractPropertiesSettings.PropertyEntry<String> dispose =
42-
createStringProperty(DISPOSE_KEY, "");
42+
createStringProperty(DISPOSE_KEY, DISPOSE_COPY);
4343
/**
4444
* Behaviour when pruning a proof that is referenced elsewhere.
4545
*/
4646
private final AbstractPropertiesSettings.PropertyEntry<String> prune =
47-
createStringProperty(PRUNE_KEY, "");
47+
createStringProperty(PRUNE_KEY, PRUNE_COPY);
4848

4949
public ProofCachingSettings() {
5050
super("ProofCaching");

0 commit comments

Comments
 (0)