Skip to content

Commit eacfb13

Browse files
authored
feat: Using @serial (#2806)
1 parent 4dd758b commit eacfb13

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: retry/src/main/java/com/iluwatar/retry/BusinessException.java

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
*/
2525
package com.iluwatar.retry;
2626

27+
import java.io.Serial;
28+
2729
/**
2830
* The top-most type in our exception hierarchy that signifies that an unexpected error condition
2931
* occurred. Its use is reserved as a "catch-all" for cases where no other subtype captures the
@@ -33,6 +35,7 @@
3335
* @author George Aristy ([email protected])
3436
*/
3537
public class BusinessException extends Exception {
38+
@Serial
3639
private static final long serialVersionUID = 6235833142062144336L;
3740

3841
/**

Diff for: retry/src/main/java/com/iluwatar/retry/DatabaseNotAvailableException.java

+3
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@
2424
*/
2525
package com.iluwatar.retry;
2626

27+
import java.io.Serial;
28+
2729
/**
2830
* Catastrophic error indicating that we have lost connection to our database.
2931
*
3032
* @author George Aristy ([email protected])
3133
*/
3234
public final class DatabaseNotAvailableException extends BusinessException {
35+
@Serial
3336
private static final long serialVersionUID = -3750769625095997799L;
3437

3538
/**

0 commit comments

Comments
 (0)