mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-09-09 12:38:01 +02:00
Mark a number of API methods as NonExtendable
This commit is contained in:
parent
16fbf566f3
commit
2d4af4c691
@ -2,7 +2,8 @@ group = 'net.luckperms'
|
||||
project.version = '5.2'
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.checkerframework:checker-qual:2.5.5'
|
||||
compileOnly 'org.checkerframework:checker-qual:3.8.0'
|
||||
compileOnly 'org.jetbrains:annotations:20.1.0'
|
||||
}
|
||||
|
||||
// Only used occasionally for deployment - not needed for normal builds.
|
||||
|
@ -39,6 +39,7 @@ import net.luckperms.api.node.types.WeightNode;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.time.Instant;
|
||||
@ -97,6 +98,7 @@ import java.util.stream.Stream;
|
||||
*
|
||||
* <p>The core node state must be immutable in all implementations.</p>
|
||||
*/
|
||||
@NonExtendable
|
||||
public interface Node {
|
||||
|
||||
/**
|
||||
|
@ -32,15 +32,19 @@ import net.luckperms.api.node.NodeType;
|
||||
import net.luckperms.api.node.types.MetaNode;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||
|
||||
import java.util.function.Predicate;
|
||||
|
||||
/**
|
||||
* A predicate which matches certain {@link Node}s.
|
||||
*
|
||||
* <p>API users should not implement this interface directly.</p>
|
||||
*
|
||||
* @param <T> the node type matched
|
||||
* @since 5.1
|
||||
*/
|
||||
@NonExtendable
|
||||
public interface NodeMatcher<T extends Node> extends Predicate<Node> {
|
||||
|
||||
/**
|
||||
|
@ -26,6 +26,7 @@
|
||||
package net.luckperms.api.node.metadata;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@ -40,6 +41,7 @@ import java.util.Objects;
|
||||
*
|
||||
* @param <T> the metadata type
|
||||
*/
|
||||
@NonExtendable
|
||||
public interface NodeMetadataKey<T> {
|
||||
|
||||
/**
|
||||
|
@ -28,6 +28,7 @@ package net.luckperms.api.query;
|
||||
import net.luckperms.api.node.metadata.NodeMetadataKey;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@ -41,6 +42,7 @@ import java.util.Objects;
|
||||
*
|
||||
* @param <T> the option type
|
||||
*/
|
||||
@NonExtendable
|
||||
public interface OptionKey<T> {
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user