Skip to content

Commit cd3c42b

Browse files
committed
#4 Make Decimal a sealed type
Closes #4
1 parent 59e5a83 commit cd3c42b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/firebirdsql/decimal/Decimal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*
3434
* @author Mark Rotteveel
3535
*/
36-
public abstract class Decimal<T extends Decimal<T>> {
36+
public abstract sealed class Decimal<T extends Decimal<T>> permits Decimal32, Decimal64, Decimal128 {
3737

3838
private final int signum;
3939
private final DecimalType type;

0 commit comments

Comments
 (0)