diff --git a/retry/src/main/java/com/iluwatar/retry/App.java b/retry/src/main/java/com/iluwatar/retry/App.java index d1712ae9a..7e65e68a4 100644 --- a/retry/src/main/java/com/iluwatar/retry/App.java +++ b/retry/src/main/java/com/iluwatar/retry/App.java @@ -56,7 +56,7 @@ import org.slf4j.LoggerFactory; * * @author George Aristy (george.aristy@gmail.com) * @see Retry pattern (Microsoft Azure Docs) - * @since 1.17.0 + * @since 1.18.0 */ public final class App { private static final Logger LOG = LoggerFactory.getLogger(App.class); @@ -67,7 +67,7 @@ public final class App { * * @param args not used * @throws Exception not expected - * @since 1.17.0 + * @since 1.18.0 */ public static void main(String[] args) throws Exception { noErrors(); diff --git a/retry/src/main/java/com/iluwatar/retry/BusinessException.java b/retry/src/main/java/com/iluwatar/retry/BusinessException.java index b25b46204..c5974e7f8 100644 --- a/retry/src/main/java/com/iluwatar/retry/BusinessException.java +++ b/retry/src/main/java/com/iluwatar/retry/BusinessException.java @@ -31,7 +31,7 @@ package com.iluwatar.retry; * be able to handle this error and should be reported to the maintainers immediately. * * @author George Aristy (george.aristy@gmail.com) - * @since 1.17.0 + * @since 1.18.0 */ public class BusinessException extends Exception { private static final long serialVersionUID = 6235833142062144336L; @@ -40,7 +40,7 @@ public class BusinessException extends Exception { * Ctor * * @param message the error message - * @since 1.17.0 + * @since 1.18.0 */ public BusinessException(String message) { super(message); diff --git a/retry/src/main/java/com/iluwatar/retry/BusinessOperation.java b/retry/src/main/java/com/iluwatar/retry/BusinessOperation.java index 657bf1a97..f8047a4c2 100644 --- a/retry/src/main/java/com/iluwatar/retry/BusinessOperation.java +++ b/retry/src/main/java/com/iluwatar/retry/BusinessOperation.java @@ -29,7 +29,7 @@ package com.iluwatar.retry; * * @author George Aristy (george.aristy@gmail.com) * @param the return type - * @since 1.17.0 + * @since 1.18.0 */ @FunctionalInterface public interface BusinessOperation { @@ -40,7 +40,7 @@ public interface BusinessOperation { * @return the return value * @throws BusinessException if the operation fails. Implementations are allowed to throw more * specific subtypes depending on the error conditions - * @since 1.17.0 + * @since 1.18.0 */ T perform() throws BusinessException; } diff --git a/retry/src/main/java/com/iluwatar/retry/CustomerNotFoundException.java b/retry/src/main/java/com/iluwatar/retry/CustomerNotFoundException.java index 7b704883f..8bb43d91e 100644 --- a/retry/src/main/java/com/iluwatar/retry/CustomerNotFoundException.java +++ b/retry/src/main/java/com/iluwatar/retry/CustomerNotFoundException.java @@ -31,7 +31,7 @@ package com.iluwatar.retry; * by an input from some end user, or were the search parameters pulled from your database? * * @author George Aristy (george.aristy@gmail.com) - * @since 1.17.0 + * @since 1.18.0 */ public final class CustomerNotFoundException extends BusinessException { private static final long serialVersionUID = -6972888602621778664L; @@ -40,7 +40,7 @@ public final class CustomerNotFoundException extends BusinessException { * Ctor. * * @param message the error message - * @since 1.17.0 + * @since 1.18.0 */ public CustomerNotFoundException(String message) { super(message); diff --git a/retry/src/main/java/com/iluwatar/retry/DatabaseNotAvailableException.java b/retry/src/main/java/com/iluwatar/retry/DatabaseNotAvailableException.java index ad57d99e0..03728b572 100644 --- a/retry/src/main/java/com/iluwatar/retry/DatabaseNotAvailableException.java +++ b/retry/src/main/java/com/iluwatar/retry/DatabaseNotAvailableException.java @@ -28,7 +28,7 @@ package com.iluwatar.retry; * Catastrophic error indicating that we have lost connection to our database. * * @author George Aristy (george.aristy@gmail.com) - * @since 1.17.0 + * @since 1.18.0 */ public final class DatabaseNotAvailableException extends BusinessException { private static final long serialVersionUID = -3750769625095997799L; @@ -37,7 +37,7 @@ public final class DatabaseNotAvailableException extends BusinessException { * Ctor. * * @param message the error message - * @since 1.17.0 + * @since 1.18.0 */ public DatabaseNotAvailableException(String message) { super(message); diff --git a/retry/src/main/java/com/iluwatar/retry/FindCustomer.java b/retry/src/main/java/com/iluwatar/retry/FindCustomer.java index 0ca484670..7e5a09b51 100644 --- a/retry/src/main/java/com/iluwatar/retry/FindCustomer.java +++ b/retry/src/main/java/com/iluwatar/retry/FindCustomer.java @@ -36,7 +36,7 @@ import java.util.Deque; * purposes of this example it fails in a programmed way depending on the constructor parameters. * * @author George Aristy (george.aristy@gmail.com) - * @since 1.17.0 + * @since 1.18.0 */ public final class FindCustomer implements BusinessOperation { private final String customerId; @@ -47,7 +47,7 @@ public final class FindCustomer implements BusinessOperation { * * @param customerId the final result of the remote operation * @param errors the errors to throw before returning {@code customerId} - * @since 1.17.0 + * @since 1.18.0 */ public FindCustomer(String customerId, BusinessException... errors) { this.customerId = customerId; diff --git a/retry/src/main/java/com/iluwatar/retry/Retry.java b/retry/src/main/java/com/iluwatar/retry/Retry.java index 647d5f22f..048956ff3 100644 --- a/retry/src/main/java/com/iluwatar/retry/Retry.java +++ b/retry/src/main/java/com/iluwatar/retry/Retry.java @@ -36,7 +36,7 @@ import java.util.function.Predicate; * * @author George Aristy (george.aristy@gmail.com) * @param the remote op's return type - * @since 1.17.0 + * @since 1.18.0 */ public final class Retry implements BusinessOperation { private final BusinessOperation op; @@ -54,7 +54,7 @@ public final class Retry implements BusinessOperation { * @param delay delay (in milliseconds) between attempts * @param ignoreTests tests to check whether the remote exception can be ignored. No exceptions * will be ignored if no tests are given - * @since 1.17.0 + * @since 1.18.0 */ @SafeVarargs public Retry( @@ -75,7 +75,7 @@ public final class Retry implements BusinessOperation { * The errors encountered while retrying, in the encounter order. * * @return the errors encountered while retrying - * @since 1.17.0 + * @since 1.18.0 */ public List errors() { return Collections.unmodifiableList(this.errors); @@ -85,7 +85,7 @@ public final class Retry implements BusinessOperation { * The number of retries performed. * * @return the number of retries performed - * @since 1.17.0 + * @since 1.18.0 */ public int attempts() { return this.attempts.intValue(); diff --git a/retry/src/test/java/com/iluwatar/retry/FindCustomerTest.java b/retry/src/test/java/com/iluwatar/retry/FindCustomerTest.java index d93b0a943..dd4dd27df 100644 --- a/retry/src/test/java/com/iluwatar/retry/FindCustomerTest.java +++ b/retry/src/test/java/com/iluwatar/retry/FindCustomerTest.java @@ -32,13 +32,13 @@ import org.junit.Test; * Unit tests for {@link FindCustomer}. * * @author George Aristy (george.aristy@gmail.com) - * @since 1.17.0 + * @since 1.18.0 */ public class FindCustomerTest { /** * Returns the given result with no exceptions. * - * @since 1.17.0 + * @since 1.18.0 */ @Test public void noExceptions() throws Exception { @@ -52,7 +52,7 @@ public class FindCustomerTest { * Throws the given exception. * * @throws Exception the expected exception - * @since 1.17.0 + * @since 1.18.0 */ @Test(expected = BusinessException.class) public void oneException() throws Exception { @@ -63,7 +63,7 @@ public class FindCustomerTest { * Should first throw the given exceptions, then return the given result. * * @throws Exception not an expected exception - * @since 1.17.0 + * @since 1.18.0 */ @Test public void resultAfterExceptions() throws Exception { diff --git a/retry/src/test/java/com/iluwatar/retry/RetryTest.java b/retry/src/test/java/com/iluwatar/retry/RetryTest.java index f91a66d10..aba1a88e2 100644 --- a/retry/src/test/java/com/iluwatar/retry/RetryTest.java +++ b/retry/src/test/java/com/iluwatar/retry/RetryTest.java @@ -33,13 +33,13 @@ import static org.junit.Assert.*; * Unit tests for {@link Retry}. * * @author George Aristy (george.aristy@gmail.com) - * @since 1.17.0 + * @since 1.18.0 */ public class RetryTest { /** * Should contain all errors thrown. * - * @since 1.17.0 + * @since 1.18.0 */ @Test public void errors() throws Exception { @@ -65,7 +65,7 @@ public class RetryTest { * No exceptions will be ignored, hence final number of attempts should be 1 even if we're asking * it to attempt twice. * - * @since 1.17.0 + * @since 1.18.0 */ @Test public void attempts() { @@ -91,7 +91,7 @@ public class RetryTest { * Final number of attempts should be equal to the number of attempts asked because we are * asking it to ignore the exception that will be thrown. * - * @since 1.17.0 + * @since 1.18.0 */ @Test public void ignore() throws Exception {