mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-03-02 11:31:13 +01:00
Add missing IllegalArgumentExceptions to Javadocs
This commit is contained in:
parent
0fef481d48
commit
a4fa8c1267
@ -63,6 +63,7 @@ public interface DisplayNameNode extends ScopedNode<DisplayNameNode, DisplayName
|
||||
*
|
||||
* @param displayName the display name to set
|
||||
* @return the builder
|
||||
* @throws IllegalArgumentException if {@code displayName} is empty
|
||||
*/
|
||||
static @NonNull Builder builder(@NonNull String displayName) {
|
||||
return builder().displayName(displayName);
|
||||
|
@ -67,6 +67,7 @@ public interface InheritanceNode extends ScopedNode<InheritanceNode, Inheritance
|
||||
*
|
||||
* @param group the group to set
|
||||
* @return the builder
|
||||
* @throws IllegalArgumentException if {@code group} is not a valid group name
|
||||
*/
|
||||
static @NonNull Builder builder(@NonNull String group) {
|
||||
return builder().group(group);
|
||||
|
@ -71,6 +71,7 @@ public interface MetaNode extends ScopedNode<MetaNode, MetaNode.Builder> {
|
||||
* @param key the meta key to set
|
||||
* @param value the meta value to set
|
||||
* @return the builder
|
||||
* @throws IllegalArgumentException if {@code key} is empty
|
||||
*/
|
||||
static @NonNull Builder builder(@NonNull String key, @NonNull String value) {
|
||||
return builder().key(key).value(value);
|
||||
|
@ -88,6 +88,7 @@ public interface PermissionNode extends ScopedNode<PermissionNode, PermissionNod
|
||||
*
|
||||
* @param permission the permission to set
|
||||
* @return the builder
|
||||
* @throws IllegalArgumentException if {@code permission} is empty
|
||||
*/
|
||||
static @NonNull Builder builder(@NonNull String permission) {
|
||||
return builder().permission(permission);
|
||||
|
@ -75,6 +75,7 @@ public interface RegexPermissionNode extends ScopedNode<RegexPermissionNode, Reg
|
||||
*
|
||||
* @param pattern the pattern to set
|
||||
* @return the builder
|
||||
* @throws IllegalArgumentException if {@code pattern} is empty
|
||||
*/
|
||||
static @NonNull Builder builder(@NonNull String pattern) {
|
||||
return builder().pattern(pattern);
|
||||
|
Loading…
Reference in New Issue
Block a user