mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-02-21 06:51:34 +01: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'
|
project.version = '5.2'
|
||||||
|
|
||||||
dependencies {
|
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.
|
// 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.NonNull;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||||
|
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
import java.time.Instant;
|
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>
|
* <p>The core node state must be immutable in all implementations.</p>
|
||||||
*/
|
*/
|
||||||
|
@NonExtendable
|
||||||
public interface Node {
|
public interface Node {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -32,15 +32,19 @@ import net.luckperms.api.node.NodeType;
|
|||||||
import net.luckperms.api.node.types.MetaNode;
|
import net.luckperms.api.node.types.MetaNode;
|
||||||
|
|
||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
|
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||||
|
|
||||||
import java.util.function.Predicate;
|
import java.util.function.Predicate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A predicate which matches certain {@link Node}s.
|
* A predicate which matches certain {@link Node}s.
|
||||||
*
|
*
|
||||||
|
* <p>API users should not implement this interface directly.</p>
|
||||||
|
*
|
||||||
* @param <T> the node type matched
|
* @param <T> the node type matched
|
||||||
* @since 5.1
|
* @since 5.1
|
||||||
*/
|
*/
|
||||||
|
@NonExtendable
|
||||||
public interface NodeMatcher<T extends Node> extends Predicate<Node> {
|
public interface NodeMatcher<T extends Node> extends Predicate<Node> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
package net.luckperms.api.node.metadata;
|
package net.luckperms.api.node.metadata;
|
||||||
|
|
||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
|
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@ -40,6 +41,7 @@ import java.util.Objects;
|
|||||||
*
|
*
|
||||||
* @param <T> the metadata type
|
* @param <T> the metadata type
|
||||||
*/
|
*/
|
||||||
|
@NonExtendable
|
||||||
public interface NodeMetadataKey<T> {
|
public interface NodeMetadataKey<T> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,6 +28,7 @@ package net.luckperms.api.query;
|
|||||||
import net.luckperms.api.node.metadata.NodeMetadataKey;
|
import net.luckperms.api.node.metadata.NodeMetadataKey;
|
||||||
|
|
||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
|
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@ -41,6 +42,7 @@ import java.util.Objects;
|
|||||||
*
|
*
|
||||||
* @param <T> the option type
|
* @param <T> the option type
|
||||||
*/
|
*/
|
||||||
|
@NonExtendable
|
||||||
public interface OptionKey<T> {
|
public interface OptionKey<T> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user