Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions java/daikon/simplify/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,14 @@ public void close(@GuardSatisfied Session this) {
process.destroyForcibly();
// In Java 26, `Process` implements `AutoCloseable`, so uncomment `process.close()`.
// process.close();
assert dkconfig_trace_input == (trace_file != null)
: "@AssumeAssertion(nullness): conditional: trace_file is non-null if"
+ " dkconfig_trace_input==true";
if (trace_file != null) {
trace_file.close();
}
// This assertion follows the call to `close()`, so that `trace_file` is closed even if the
// assertion fails.
assert dkconfig_trace_input == (trace_file != null)
: "@AssumeAssertion(nullness): conditional: trace_file is non-null if"
+ " dkconfig_trace_input==true";
}

/**
Expand Down
Loading