Skip to content

Commit 75b5fed

Browse files
committed
Suppressing two false warnings that turned into build errors
1 parent 5dc119b commit 75b5fed

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

core/src/test/java/io/temporal/samples/nexus/caller/NexusServiceJunit5Test.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ public class NexusServiceJunit5Test {
3030
@ServiceImpl(service = SampleNexusService.class)
3131
public class TestNexusServiceImpl {
3232
@OperationImpl
33+
@SuppressWarnings("DirectInvocationOnMock")
3334
public OperationHandler<SampleNexusService.EchoInput, SampleNexusService.EchoOutput> echo() {
3435
return OperationHandler.sync((ctx, details, input) -> mockNexusService.echo(input));
3536
}
3637

3738
@OperationImpl
39+
@SuppressWarnings("DirectInvocationOnMock")
3840
public OperationHandler<SampleNexusService.HelloInput, SampleNexusService.HelloOutput> hello() {
3941
return OperationHandler.sync((ctx, details, input) -> mockNexusService.hello(input));
4042
}

core/src/test/java/io/temporal/samples/nexus/caller/NexusServiceMockTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ public class NexusServiceMockTest {
2929
@ServiceImpl(service = SampleNexusService.class)
3030
public class TestNexusServiceImpl {
3131
@OperationImpl
32+
@SuppressWarnings("DirectInvocationOnMock")
3233
public OperationHandler<SampleNexusService.EchoInput, SampleNexusService.EchoOutput> echo() {
3334
return OperationHandler.sync((ctx, details, input) -> mockNexusService.echo(input));
3435
}
3536

3637
@OperationImpl
38+
@SuppressWarnings("DirectInvocationOnMock")
3739
public OperationHandler<SampleNexusService.HelloInput, SampleNexusService.HelloOutput> hello() {
3840
return OperationHandler.sync((ctx, details, input) -> mockNexusService.hello(input));
3941
}

0 commit comments

Comments
 (0)