diff --git a/sdk-utils/src/main/java/com/redhat/parodos/sdkutils/SdkUtils.java b/sdk-utils/src/main/java/com/redhat/parodos/sdkutils/SdkUtils.java index bf2624a5a..a26017aba 100644 --- a/sdk-utils/src/main/java/com/redhat/parodos/sdkutils/SdkUtils.java +++ b/sdk-utils/src/main/java/com/redhat/parodos/sdkutils/SdkUtils.java @@ -190,17 +190,7 @@ private void signal() { * @throws ApiException If the API method invocation fails */ public static void waitProjectStart(ProjectApi projectApi) throws InterruptedException, ApiException { - List projectResponseDTOS = waitAsyncResponse(new FuncExecutor<>() { - @Override - public boolean check(List result) { - return result == null; - } - - @Override - public void execute(@NonNull ApiCallback> callback) throws ApiException { - projectApi.getProjectsAsync(callback); - } - }); + waitAsyncResponse((FuncExecutor>) callback -> projectApi.getProjectsAsync(callback)); } /**