Skip to content

Commit e6ae6cc

Browse files
committed
Resolve Sonar Issues
1 parent 73fdff5 commit e6ae6cc

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

spring-rabbit-test/src/main/java/org/springframework/amqp/rabbit/test/mockito/LambdaAnswer.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@
2323

2424
import org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations;
2525
import org.mockito.invocation.InvocationOnMock;
26-
import org.mockito.stubbing.Answer;
2726

2827
import org.springframework.lang.Nullable;
2928

3029
/**
31-
* An {@link Answer} to optionally call the real method and allow returning a
32-
* custom result. Captures any exceptions thrown.
30+
* An {@link org.mockito.stubbing.Answer} to optionally call the real method and allow
31+
* returning a custom result. Captures any exceptions thrown.
3332
*
3433
* @param <T> the return type.
3534
*

spring-rabbit-test/src/main/java/org/springframework/amqp/rabbit/test/mockito/LatchCountDownAndCallRealMethodAnswer.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@
2525

2626
import org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations;
2727
import org.mockito.invocation.InvocationOnMock;
28-
import org.mockito.stubbing.Answer;
2928

3029
import org.springframework.lang.Nullable;
3130

3231
/**
33-
* An {@link Answer} for void returning methods that calls the real method and counts down
34-
* a latch. Captures any exceptions thrown.
32+
* An {@link org.mockito.stubbing.Answer} for void returning methods that calls the real
33+
* method and counts down a latch. Captures any exceptions thrown.
3534
*
3635
* @author Gary Russell
3736
* @since 1.6
@@ -40,7 +39,7 @@
4039
@SuppressWarnings("serial")
4140
public class LatchCountDownAndCallRealMethodAnswer extends ForwardsInvocations {
4241

43-
private final CountDownLatch latch;
42+
private final transient CountDownLatch latch;
4443

4544
private final Set<Exception> exceptions = Collections.synchronizedSet(new LinkedHashSet<>());
4645

0 commit comments

Comments
 (0)