9
9
* Represents the configuration for an application form, including roles and application channel
10
10
* pattern.
11
11
*
12
- * @param submissionsChannelPattern the pattern used to identify the submissions channel where applications are sent
12
+ * @param submissionsChannelPattern the pattern used to identify the submissions channel where
13
+ * applications are sent
13
14
* @param defaultQuestion the default question that will be asked in the role application form
14
15
* @param minimumAnswerLength the minimum number of characters required for the applicant's answer
15
16
* @param maximumAnswerLength the maximum number of characters allowed for the applicant's answer
16
- * @param applicationSubmitCooldownMinutes the cooldown time in minutes before the user can submit another application
17
+ * @param applicationSubmitCooldownMinutes the cooldown time in minutes before the user can submit
18
+ * another application
17
19
*/
18
20
public record RoleApplicationSystemConfig (
19
21
@ JsonProperty (value = "submissionsChannelPattern" ,
@@ -28,14 +30,17 @@ public record RoleApplicationSystemConfig(
28
30
* Constructs an instance of {@link RoleApplicationSystemConfig} with the provided parameters.
29
31
* <p>
30
32
* This constructor ensures that {@code submissionsChannelPattern} and {@code defaultQuestion}
31
- * are not null and that the length of the {@code defaultQuestion} does not exceed the maximum allowed length.
33
+ * are not null and that the length of the {@code defaultQuestion} does not exceed the maximum
34
+ * allowed length.
32
35
*/
33
36
public RoleApplicationSystemConfig {
34
37
Objects .requireNonNull (submissionsChannelPattern );
35
38
Objects .requireNonNull (defaultQuestion );
36
39
37
40
if (defaultQuestion .length () > TextInput .MAX_LABEL_LENGTH ) {
38
- throw new IllegalArgumentException ("defaultQuestion length is too long! Cannot be greater than %d" .formatted (TextInput .MAX_LABEL_LENGTH ));
41
+ throw new IllegalArgumentException (
42
+ "defaultQuestion length is too long! Cannot be greater than %d"
43
+ .formatted (TextInput .MAX_LABEL_LENGTH ));
39
44
}
40
45
}
41
46
}
0 commit comments