Skip to content

Commit 10c0879

Browse files
committed
(FIX) Upgrade all @SInCE versions to 1.18.0 following the
parent pom's version update
1 parent 620f408 commit 10c0879

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

retry/src/main/java/com/iluwatar/retry/App.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
*
5757
* @author George Aristy (george.aristy@gmail.com)
5858
* @see <a href="https://docs.microsoft.com/en-us/azure/architecture/patterns/retry">Retry pattern (Microsoft Azure Docs)</a>
59-
* @since 1.17.0
59+
* @since 1.18.0
6060
*/
6161
public final class App {
6262
private static final Logger LOG = LoggerFactory.getLogger(App.class);
@@ -67,7 +67,7 @@ public final class App {
6767
*
6868
* @param args not used
6969
* @throws Exception not expected
70-
* @since 1.17.0
70+
* @since 1.18.0
7171
*/
7272
public static void main(String[] args) throws Exception {
7373
noErrors();

retry/src/main/java/com/iluwatar/retry/BusinessException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* be able to handle this error and should be reported to the maintainers immediately.
3232
*
3333
* @author George Aristy (george.aristy@gmail.com)
34-
* @since 1.17.0
34+
* @since 1.18.0
3535
*/
3636
public class BusinessException extends Exception {
3737
private static final long serialVersionUID = 6235833142062144336L;
@@ -40,7 +40,7 @@ public class BusinessException extends Exception {
4040
* Ctor
4141
*
4242
* @param message the error message
43-
* @since 1.17.0
43+
* @since 1.18.0
4444
*/
4545
public BusinessException(String message) {
4646
super(message);

retry/src/main/java/com/iluwatar/retry/BusinessOperation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @author George Aristy (george.aristy@gmail.com)
3131
* @param <T> the return type
32-
* @since 1.17.0
32+
* @since 1.18.0
3333
*/
3434
@FunctionalInterface
3535
public interface BusinessOperation<T> {
@@ -40,7 +40,7 @@ public interface BusinessOperation<T> {
4040
* @return the return value
4141
* @throws BusinessException if the operation fails. Implementations are allowed to throw more
4242
* specific subtypes depending on the error conditions
43-
* @since 1.17.0
43+
* @since 1.18.0
4444
*/
4545
T perform() throws BusinessException;
4646
}

retry/src/main/java/com/iluwatar/retry/CustomerNotFoundException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* by an input from some end user, or were the search parameters pulled from your database?
3232
*
3333
* @author George Aristy (george.aristy@gmail.com)
34-
* @since 1.17.0
34+
* @since 1.18.0
3535
*/
3636
public final class CustomerNotFoundException extends BusinessException {
3737
private static final long serialVersionUID = -6972888602621778664L;
@@ -40,7 +40,7 @@ public final class CustomerNotFoundException extends BusinessException {
4040
* Ctor.
4141
*
4242
* @param message the error message
43-
* @since 1.17.0
43+
* @since 1.18.0
4444
*/
4545
public CustomerNotFoundException(String message) {
4646
super(message);

retry/src/main/java/com/iluwatar/retry/DatabaseNotAvailableException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* Catastrophic error indicating that we have lost connection to our database.
2929
*
3030
* @author George Aristy (george.aristy@gmail.com)
31-
* @since 1.17.0
31+
* @since 1.18.0
3232
*/
3333
public final class DatabaseNotAvailableException extends BusinessException {
3434
private static final long serialVersionUID = -3750769625095997799L;
@@ -37,7 +37,7 @@ public final class DatabaseNotAvailableException extends BusinessException {
3737
* Ctor.
3838
*
3939
* @param message the error message
40-
* @since 1.17.0
40+
* @since 1.18.0
4141
*/
4242
public DatabaseNotAvailableException(String message) {
4343
super(message);

retry/src/main/java/com/iluwatar/retry/FindCustomer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* purposes of this example it fails in a programmed way depending on the constructor parameters.
3737
*
3838
* @author George Aristy (george.aristy@gmail.com)
39-
* @since 1.17.0
39+
* @since 1.18.0
4040
*/
4141
public final class FindCustomer implements BusinessOperation<String> {
4242
private final String customerId;
@@ -47,7 +47,7 @@ public final class FindCustomer implements BusinessOperation<String> {
4747
*
4848
* @param customerId the final result of the remote operation
4949
* @param errors the errors to throw before returning {@code customerId}
50-
* @since 1.17.0
50+
* @since 1.18.0
5151
*/
5252
public FindCustomer(String customerId, BusinessException... errors) {
5353
this.customerId = customerId;

retry/src/main/java/com/iluwatar/retry/Retry.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*
3737
* @author George Aristy (george.aristy@gmail.com)
3838
* @param <T> the remote op's return type
39-
* @since 1.17.0
39+
* @since 1.18.0
4040
*/
4141
public final class Retry<T> implements BusinessOperation<T> {
4242
private final BusinessOperation<T> op;
@@ -54,7 +54,7 @@ public final class Retry<T> implements BusinessOperation<T> {
5454
* @param delay delay (in milliseconds) between attempts
5555
* @param ignoreTests tests to check whether the remote exception can be ignored. No exceptions
5656
* will be ignored if no tests are given
57-
* @since 1.17.0
57+
* @since 1.18.0
5858
*/
5959
@SafeVarargs
6060
public Retry(
@@ -75,7 +75,7 @@ public Retry(
7575
* The errors encountered while retrying, in the encounter order.
7676
*
7777
* @return the errors encountered while retrying
78-
* @since 1.17.0
78+
* @since 1.18.0
7979
*/
8080
public List<Exception> errors() {
8181
return Collections.unmodifiableList(this.errors);
@@ -85,7 +85,7 @@ public List<Exception> errors() {
8585
* The number of retries performed.
8686
*
8787
* @return the number of retries performed
88-
* @since 1.17.0
88+
* @since 1.18.0
8989
*/
9090
public int attempts() {
9191
return this.attempts.intValue();

retry/src/test/java/com/iluwatar/retry/FindCustomerTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
* Unit tests for {@link FindCustomer}.
3333
*
3434
* @author George Aristy (george.aristy@gmail.com)
35-
* @since 1.17.0
35+
* @since 1.18.0
3636
*/
3737
public class FindCustomerTest {
3838
/**
3939
* Returns the given result with no exceptions.
4040
*
41-
* @since 1.17.0
41+
* @since 1.18.0
4242
*/
4343
@Test
4444
public void noExceptions() throws Exception {
@@ -52,7 +52,7 @@ public void noExceptions() throws Exception {
5252
* Throws the given exception.
5353
*
5454
* @throws Exception the expected exception
55-
* @since 1.17.0
55+
* @since 1.18.0
5656
*/
5757
@Test(expected = BusinessException.class)
5858
public void oneException() throws Exception {
@@ -63,7 +63,7 @@ public void oneException() throws Exception {
6363
* Should first throw the given exceptions, then return the given result.
6464
*
6565
* @throws Exception not an expected exception
66-
* @since 1.17.0
66+
* @since 1.18.0
6767
*/
6868
@Test
6969
public void resultAfterExceptions() throws Exception {

retry/src/test/java/com/iluwatar/retry/RetryTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
* Unit tests for {@link Retry}.
3434
*
3535
* @author George Aristy (george.aristy@gmail.com)
36-
* @since 1.17.0
36+
* @since 1.18.0
3737
*/
3838
public class RetryTest {
3939
/**
4040
* Should contain all errors thrown.
4141
*
42-
* @since 1.17.0
42+
* @since 1.18.0
4343
*/
4444
@Test
4545
public void errors() throws Exception {
@@ -65,7 +65,7 @@ public void errors() throws Exception {
6565
* No exceptions will be ignored, hence final number of attempts should be 1 even if we're asking
6666
* it to attempt twice.
6767
*
68-
* @since 1.17.0
68+
* @since 1.18.0
6969
*/
7070
@Test
7171
public void attempts() {
@@ -91,7 +91,7 @@ public void attempts() {
9191
* Final number of attempts should be equal to the number of attempts asked because we are
9292
* asking it to ignore the exception that will be thrown.
9393
*
94-
* @since 1.17.0
94+
* @since 1.18.0
9595
*/
9696
@Test
9797
public void ignore() throws Exception {

0 commit comments

Comments
 (0)