Use diamond operator where feasible
See gh-31916
This commit is contained in:
committed by
Stéphane Nicoll
parent
db2c532c07
commit
094479b55f
@@ -248,8 +248,9 @@ class DefaultMessageListenerContainerTests {
|
||||
private static ConnectionFactory createRecoverableContainerFactory(final int failingAttempts) {
|
||||
try {
|
||||
ConnectionFactory connectionFactory = mock();
|
||||
given(connectionFactory.createConnection()).will(new Answer<Object>() {
|
||||
given(connectionFactory.createConnection()).will(new Answer<>() {
|
||||
int currentAttempts = 0;
|
||||
|
||||
@Override
|
||||
public Object answer(InvocationOnMock invocation) throws Throwable {
|
||||
currentAttempts++;
|
||||
|
||||
Reference in New Issue
Block a user