Skip to content

Commit ea06646

Browse files
committed
feat: add CakeDayConfig record constructor
1 parent dc318f6 commit ea06646

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

application/src/main/java/org/togetherjava/tjbot/config/CakeDayConfig.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@
22

33
import com.fasterxml.jackson.annotation.JsonProperty;
44

5+
import java.util.Objects;
6+
57
/**
68
* Configuration record for the Cake Day feature.
79
*/
810
public record CakeDayConfig(
911
@JsonProperty(value = "rolePattern", required = true) String rolePattern) {
12+
13+
/**
14+
* Configuration constructor for the Cake Day feature.
15+
*/
16+
public CakeDayConfig {
17+
Objects.requireNonNull(rolePattern);
18+
}
1019
}

0 commit comments

Comments
 (0)