Mark a number of API methods as NonExtendable

This commit is contained in:
Luck 2020-12-14 16:07:20 +00:00
parent 16fbf566f3
commit 2d4af4c691
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
5 changed files with 12 additions and 1 deletions

View File

@ -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.

View File

@ -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 {
/**

View File

@ -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> {
/**

View File

@ -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> {
/**

View File

@ -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> {
/**