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