We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc318f6 commit ea06646Copy full SHA for ea06646
application/src/main/java/org/togetherjava/tjbot/config/CakeDayConfig.java
@@ -2,9 +2,18 @@
2
3
import com.fasterxml.jackson.annotation.JsonProperty;
4
5
+import java.util.Objects;
6
+
7
/**
8
* Configuration record for the Cake Day feature.
9
*/
10
public record CakeDayConfig(
11
@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
+ }
19
}
0 commit comments