You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate.notNull(categories, "`categories` cannot be null");
99
99
100
100
this.categories.addAll(categories);
101
101
returnthis;
@@ -128,6 +128,7 @@ public Builder screenInit(@NotNull Consumer<YACLScreen> initConsumer) {
128
128
publicYetAnotherConfigLibbuild() {
129
129
Validate.notNull(title, "`title must not be null to build `YetAnotherConfigLib`");
130
130
Validate.notEmpty(categories, "`categories` must not be empty to build `YetAnotherConfigLib`");
131
+
Validate.isTrue(!categories.stream().allMatch(category -> categoryinstanceofPlaceholderCategory), "At least one regular category is required to build `YetAnotherConfigLib`");
0 commit comments