1212 * information: "Portions copyright [year] [name of copyright owner]".
1313 *
1414 * Copyright 2016 ForgeRock AS.
15+ * Portions copyright 2026 3A Systems,LLC
1516 */
1617
1718package org .forgerock .openig .thread ;
@@ -84,7 +85,7 @@ public void shouldScheduleWithRunnableLongTimeUnit() throws Exception {
8485 doReturn (scheduledFuture ).when (delegate ())
8586 .schedule (nullable (Runnable .class ), eq (1L ), eq (TimeUnit .SECONDS ));
8687
87- assertThat (executorService ().schedule (runnable , 1 , TimeUnit .SECONDS )).isSameAs (scheduledFuture );
88+ assertThat (( Object ) executorService ().schedule (runnable , 1 , TimeUnit .SECONDS )).isSameAs (scheduledFuture );
8889
8990 verify (delegate ()).schedule (runnableCapture .capture (), eq (1L ), eq (TimeUnit .SECONDS ));
9091 assertThatCapturedRunnableIsMdcAware ();
@@ -96,7 +97,7 @@ public void shouldScheduleWithCallableLongTimeUnit() throws Exception {
9697 doReturn (scheduledFuture ).when (delegate ())
9798 .schedule (nullable (Callable .class ), eq (1L ), eq (TimeUnit .SECONDS ));
9899
99- assertThat (executorService ().schedule (callable , 1 , TimeUnit .SECONDS )).isSameAs (scheduledFuture );
100+ assertThat (( Object ) executorService ().schedule (callable , 1 , TimeUnit .SECONDS )).isSameAs (scheduledFuture );
100101
101102 verify (delegate ()).schedule (callableCapture .capture (), eq (1L ), eq (TimeUnit .SECONDS ));
102103 assertThatCaptureCallableIsMdcAware ();
@@ -107,7 +108,7 @@ public void shouldScheduleAtFixedRateWithRunnableLongTimeUnit() throws Exception
107108 doReturn (scheduledFuture ).when (delegate ())
108109 .scheduleAtFixedRate (nullable (Runnable .class ), eq (1L ), eq (2L ), eq (TimeUnit .SECONDS ));
109110
110- assertThat (executorService ().scheduleAtFixedRate (runnable , 1 , 2 , TimeUnit .SECONDS )).isSameAs (scheduledFuture );
111+ assertThat (( Object ) executorService ().scheduleAtFixedRate (runnable , 1 , 2 , TimeUnit .SECONDS )).isSameAs (scheduledFuture );
111112
112113 verify (delegate ()).scheduleAtFixedRate (runnableCapture .capture (), eq (1L ), eq (2L ), eq (TimeUnit .SECONDS ));
113114 assertThatCapturedRunnableIsMdcAware ();
@@ -118,7 +119,7 @@ public void shouldScheduleWithFixedDelayWithRunnableLongTimeUnit() throws Except
118119 doReturn (scheduledFuture ).when (delegate ())
119120 .scheduleWithFixedDelay (nullable (Runnable .class ), eq (1L ), eq (2L ), eq (TimeUnit .SECONDS ));
120121
121- assertThat (executorService ().scheduleWithFixedDelay (runnable , 1 , 2 , TimeUnit .SECONDS ))
122+ assertThat (( Object ) executorService ().scheduleWithFixedDelay (runnable , 1 , 2 , TimeUnit .SECONDS ))
122123 .isSameAs (scheduledFuture );
123124
124125 verify (delegate ()).scheduleWithFixedDelay (runnableCapture .capture (), eq (1L ), eq (2L ), eq (TimeUnit .SECONDS ));
0 commit comments