Skip to content

Commit c202b5d

Browse files
committed
Fix compilation failure
1 parent 2e7a73c commit c202b5d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/org/springframework/retry/annotation/RecoverAnnotationRecoveryHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import org.springframework.retry.support.RetrySynchronizationManager;
3131
import org.springframework.util.ClassUtils;
3232
import org.springframework.util.ReflectionUtils;
33+
import org.springframework.util.ReflectionUtils.MethodCallback;
3334
import org.springframework.util.StringUtils;
3435

3536
/**

src/test/java/org/springframework/retry/annotation/RecoverAnnotationRecoveryHandlerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public void recoverByComposedRetryableAnnotationName() {
295295
Method foo = ReflectionUtils.findMethod(RecoverByComposedRetryableAnnotationName.class, "foo", String.class);
296296
RecoverAnnotationRecoveryHandler<?> handler = new RecoverAnnotationRecoveryHandler<Integer>(
297297
new RecoverByComposedRetryableAnnotationName(), foo);
298-
assertThat(handler.recover(new Object[] { "Kevin" }, new RuntimeException("Planned"))).isEqualTo(4);
298+
assertEquals(4, handler.recover(new Object[] { "Kevin" }, new RuntimeException("Planned")));
299299
}
300300

301301
private static class InAccessibleRecover {

0 commit comments

Comments
 (0)