99 * Represents the configuration for an application form, including roles and application channel
1010 * pattern.
1111 *
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
1314 * @param defaultQuestion the default question that will be asked in the role application form
1415 * @param minimumAnswerLength the minimum number of characters required for the applicant's answer
1516 * @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
1719 */
1820public record RoleApplicationSystemConfig (
1921 @ JsonProperty (value = "submissionsChannelPattern" ,
@@ -28,14 +30,17 @@ public record RoleApplicationSystemConfig(
2830 * Constructs an instance of {@link RoleApplicationSystemConfig} with the provided parameters.
2931 * <p>
3032 * 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.
3235 */
3336 public RoleApplicationSystemConfig {
3437 Objects .requireNonNull (submissionsChannelPattern );
3538 Objects .requireNonNull (defaultQuestion );
3639
3740 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 ));
3944 }
4045 }
4146}
0 commit comments