Skip to content

Commit a43d183

Browse files
author
BaierD
committed
Reduce complexity of prover based shutdown getter even more
1 parent 7422f4c commit a43d183

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

src/org/sosy_lab/java_smt/api/BasicProverEnvironment.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,5 +217,11 @@ default boolean registerUserPropagator(UserPropagator propagator) {
217217
* ProverEnvironment}.
218218
* @throws UnsupportedOperationException if the solver does not support prover specific shutdown.
219219
*/
220-
ShutdownManager getShutdownManagerForProver() throws UnsupportedOperationException;
220+
default ShutdownManager getShutdownManagerForProver() {
221+
// Override this with the prover specific ShutdownManagers notifier for supporting solvers.
222+
// The solver should then use the prover specific ShutdownManagers notifier for stopping
223+
// instead of the contexts' notifier!
224+
throw new UnsupportedOperationException(
225+
"The chosen solver does not support isolated prover shutdown");
226+
}
221227
}

src/org/sosy_lab/java_smt/basicimpl/AbstractProver.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,4 @@ public void close() {
167167
closeAllEvaluators();
168168
closed = true;
169169
}
170-
171-
@Override
172-
public ShutdownManager getShutdownManagerForProver() {
173-
// Override this with the prover specific ShutdownManagers notifier for supporting solvers.
174-
// The solver should then use the prover specific ShutdownManagers notifier for stopping
175-
// instead of the contexts' notifier!
176-
throw new UnsupportedOperationException(
177-
"The chosen solver does not support isolated prover shutdown");
178-
}
179170
}

0 commit comments

Comments
 (0)