Skip to content

Commit f44be1a

Browse files
committed
Made DurationArgument a final class
Ensured immutability by declaring `DurationArgument` as final, preventing unintended subclassing.
1 parent ae6d4be commit f44be1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paper/src/main/java/core/paper/command/argument/DurationArgument.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* A custom argument type implementation to handle durations in a converted format.
1414
*/
1515
@NullMarked
16-
public class DurationArgument implements CustomArgumentType.Converted<Duration, Integer> {
16+
public final class DurationArgument implements CustomArgumentType.Converted<Duration, Integer> {
1717
private final Duration minimum;
1818

1919
private DurationArgument(Duration minimum) {

0 commit comments

Comments
 (0)