File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
main/java/org/springframework/retry/support
test/java/org/springframework/retry/support Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 82
82
*
83
83
* @author Aleksandr Shamukov
84
84
* @author Artem Bilan
85
- * @author hotire
85
+ * @author Kim In Hoi
86
86
* @since 1.3
87
87
*/
88
88
public class RetryTemplateBuilder {
@@ -318,9 +318,9 @@ public RetryTemplateBuilder notRetryOn(Class<? extends Throwable> throwable) {
318
318
* {@link #notRetryOn(Class)} or {@link #notRetryOn(List)}
319
319
* @param throwables to be retryable (with it's subclasses)
320
320
* @return this
321
+ * @since 1.3.2
321
322
* @see BinaryExceptionClassifierBuilder#retryOn
322
323
* @see BinaryExceptionClassifier
323
- * @since 1.3.2
324
324
*/
325
325
public RetryTemplateBuilder retryOn (List <Class <? extends Throwable >> throwables ) {
326
326
for (final Class <? extends Throwable > throwable : throwables ) {
@@ -340,9 +340,9 @@ public RetryTemplateBuilder retryOn(List<Class<? extends Throwable>> throwables)
340
340
* {@link #retryOn(Class)} or {@link #retryOn(List)}
341
341
* @param throwables to be not retryable (with it's subclasses)
342
342
* @return this
343
+ * @since 1.3.2
343
344
* @see BinaryExceptionClassifierBuilder#notRetryOn
344
345
* @see BinaryExceptionClassifier
345
- * @since 1.3.2
346
346
*/
347
347
public RetryTemplateBuilder notRetryOn (List <Class <? extends Throwable >> throwables ) {
348
348
for (final Class <? extends Throwable > throwable : throwables ) {
Original file line number Diff line number Diff line change 50
50
* follow project's style.
51
51
*
52
52
* @author Aleksandr Shamukov
53
- * @author hotire
53
+ * @author Kim In Hoi
54
54
*/
55
55
public class RetryTemplateBuilderTest {
56
56
@@ -163,7 +163,9 @@ public void testFailOnNotationMix() {
163
163
164
164
@ Test (expected = IllegalArgumentException .class )
165
165
public void testFailOnNotationsMix () {
166
- RetryTemplate .builder ().retryOn (Collections .<Class <? extends Throwable >>singletonList (IOException .class )).notRetryOn (Collections .<Class <? extends Throwable >>singletonList (OutOfMemoryError .class ));
166
+ RetryTemplate .builder ()
167
+ .retryOn (Collections .<Class <? extends Throwable >>singletonList (IOException .class ))
168
+ .notRetryOn (Collections .<Class <? extends Throwable >>singletonList (OutOfMemoryError .class ));
167
169
}
168
170
169
171
/* ---------------- BackOff -------------- */
You can’t perform that action at this time.
0 commit comments