Skip to content

Commit 5d59cc9

Browse files
committed
Apply comments
1 parent 4f99b10 commit 5d59cc9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/main/java/org/springframework/retry/support/RetryTemplateBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
*
8383
* @author Aleksandr Shamukov
8484
* @author Artem Bilan
85-
* @author hotire
85+
* @author Kim In Hoi
8686
* @since 1.3
8787
*/
8888
public class RetryTemplateBuilder {
@@ -318,9 +318,9 @@ public RetryTemplateBuilder notRetryOn(Class<? extends Throwable> throwable) {
318318
* {@link #notRetryOn(Class)} or {@link #notRetryOn(List)}
319319
* @param throwables to be retryable (with it's subclasses)
320320
* @return this
321+
* @since 1.3.2
321322
* @see BinaryExceptionClassifierBuilder#retryOn
322323
* @see BinaryExceptionClassifier
323-
* @since 1.3.2
324324
*/
325325
public RetryTemplateBuilder retryOn(List<Class<? extends Throwable>> throwables) {
326326
for (final Class<? extends Throwable> throwable : throwables) {
@@ -340,9 +340,9 @@ public RetryTemplateBuilder retryOn(List<Class<? extends Throwable>> throwables)
340340
* {@link #retryOn(Class)} or {@link #retryOn(List)}
341341
* @param throwables to be not retryable (with it's subclasses)
342342
* @return this
343+
* @since 1.3.2
343344
* @see BinaryExceptionClassifierBuilder#notRetryOn
344345
* @see BinaryExceptionClassifier
345-
* @since 1.3.2
346346
*/
347347
public RetryTemplateBuilder notRetryOn(List<Class<? extends Throwable>> throwables) {
348348
for (final Class<? extends Throwable> throwable : throwables) {

src/test/java/org/springframework/retry/support/RetryTemplateBuilderTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* follow project's style.
5151
*
5252
* @author Aleksandr Shamukov
53-
* @author hotire
53+
* @author Kim In Hoi
5454
*/
5555
public class RetryTemplateBuilderTest {
5656

@@ -163,7 +163,9 @@ public void testFailOnNotationMix() {
163163

164164
@Test(expected = IllegalArgumentException.class)
165165
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));
167169
}
168170

169171
/* ---------------- BackOff -------------- */

0 commit comments

Comments
 (0)