From f76fb658cfd2bf979bcd40e04c20e586658a02d7 Mon Sep 17 00:00:00 2001 From: Slimane AMAR Date: Thu, 26 Dec 2024 15:24:36 +0100 Subject: [PATCH] Restore deleted method Signed-off-by: Slimane AMAR --- .../computation/service/AbstractComputationObserver.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/powsybl/ws/commons/computation/service/AbstractComputationObserver.java b/src/main/java/com/powsybl/ws/commons/computation/service/AbstractComputationObserver.java index f308f98..f8ad8d8 100644 --- a/src/main/java/com/powsybl/ws/commons/computation/service/AbstractComputationObserver.java +++ b/src/main/java/com/powsybl/ws/commons/computation/service/AbstractComputationObserver.java @@ -57,6 +57,10 @@ public void observe(String name, AbstractComputationRunCon createObservation(name, runContext).observeChecked(callable); } + public T observe(String name, AbstractComputationRunContext

runContext, Observation.CheckedCallable callable) throws E { + return createObservation(name, runContext).observeChecked(callable); + } + public T observeRun( String name, AbstractComputationRunContext

runContext, Observation.CheckedCallable callable) throws E { T result;