Fix import order

This commit is contained in:
Jason Penilla 2021-12-01 22:00:40 -08:00 committed by Jason
parent dbf5af7202
commit 708d11854e
275 changed files with 559 additions and 834 deletions

View file

@ -156,6 +156,13 @@
<property name="processJavadoc" value="true"/> <property name="processJavadoc" value="true"/>
</module> </module>
<!-- https://checkstyle.org/config_imports.html#CustomImportOrder -->
<module name="CustomImportOrder">
<property name="customImportOrderRules" value="THIRD_PARTY_PACKAGE###STATIC"/>
<property name="standardPackageRegExp" value="^$"/>
<property name="sortImportsInGroupAlphabetically" value="true"/>
</module>
<!-- Checks for whitespace --> <!-- Checks for whitespace -->
<!-- See https://checkstyle.org/config_whitespace.html --> <!-- See https://checkstyle.org/config_whitespace.html -->
<module name="EmptyForIteratorPad"/> <module name="EmptyForIteratorPad"/>

View file

@ -137,7 +137,7 @@ ij_java_for_statement_wrap = off
ij_java_generate_final_locals = true ij_java_generate_final_locals = true
ij_java_generate_final_parameters = true ij_java_generate_final_parameters = true
ij_java_if_brace_force = always ij_java_if_brace_force = always
ij_java_imports_layout = *, |, javax.**, java.**, |, $* ij_java_imports_layout = *,|,$*
ij_java_indent_case_from_switch = true ij_java_indent_case_from_switch = true
ij_java_insert_inner_class_imports = false ij_java_insert_inner_class_imports = false
ij_java_insert_override_annotation = true ij_java_insert_override_annotation = true

View file

@ -48,12 +48,6 @@ import cloud.commandframework.extra.confirmation.CommandConfirmationManager;
import cloud.commandframework.meta.CommandMeta; import cloud.commandframework.meta.CommandMeta;
import cloud.commandframework.meta.SimpleCommandMeta; import cloud.commandframework.meta.SimpleCommandMeta;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import java.util.function.Predicate;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;
@ -71,6 +65,9 @@ import java.util.Queue;
import java.util.Set; import java.util.Set;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import java.util.function.Function; import java.util.function.Function;
import java.util.function.Predicate;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* Parser that parses class instances {@link Command commands} * Parser that parses class instances {@link Command commands}

View file

@ -23,13 +23,12 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Annotation used to indicate that a method parameter is a command argument * Annotation used to indicate that a method parameter is a command argument

View file

@ -23,13 +23,12 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.lang.reflect.Parameter; import java.lang.reflect.Parameter;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.function.Function; import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Utility that extract {@link Argument arguments} from * Utility that extract {@link Argument arguments} from

View file

@ -23,9 +23,8 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.reflect.Parameter; import java.lang.reflect.Parameter;
import org.checkerframework.checker.nullness.qual.NonNull;
final class ArgumentParameterPair { final class ArgumentParameterPair {

View file

@ -24,12 +24,11 @@
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import cloud.commandframework.arguments.parser.StandardParameters; import cloud.commandframework.arguments.parser.StandardParameters;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Maps to {@link StandardParameters#DESCRIPTION} * Maps to {@link StandardParameters#DESCRIPTION}

View file

@ -23,12 +23,11 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Used to declare a class method as a command method * Used to declare a class method as a command method

View file

@ -23,9 +23,8 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import org.checkerframework.checker.nullness.qual.NonNull;
final class CommandMethodPair { final class CommandMethodPair {

View file

@ -23,12 +23,11 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Equivalent to {@link cloud.commandframework.Command.Builder#permission(String)} * Equivalent to {@link cloud.commandframework.Command.Builder#permission(String)}

View file

@ -23,13 +23,12 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Indicates that the parameter should be treated like a {@link cloud.commandframework.arguments.flags.CommandFlag}. * Indicates that the parameter should be treated like a {@link cloud.commandframework.arguments.flags.CommandFlag}.

View file

@ -31,8 +31,6 @@ import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.arguments.parser.ParserRegistry; import cloud.commandframework.arguments.parser.ParserRegistry;
import cloud.commandframework.permission.Permission; import cloud.commandframework.permission.Permission;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.lang.reflect.Parameter; import java.lang.reflect.Parameter;
@ -42,6 +40,7 @@ import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import java.util.function.Function; import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
final class FlagExtractor implements Function<@NonNull Method, Collection<@NonNull CommandFlag<?>>> { final class FlagExtractor implements Function<@NonNull Method, Collection<@NonNull CommandFlag<?>>> {

View file

@ -24,7 +24,6 @@
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import cloud.commandframework.Command; import cloud.commandframework.Command;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;

View file

@ -25,11 +25,10 @@ package cloud.commandframework.annotations;
import cloud.commandframework.arguments.parser.ParserParameters; import cloud.commandframework.arguments.parser.ParserParameters;
import cloud.commandframework.meta.CommandMeta; import cloud.commandframework.meta.CommandMeta;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.function.Function; import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
class MetaFactory implements Function<@NonNull Method, @NonNull CommandMeta> { class MetaFactory implements Function<@NonNull Method, @NonNull CommandMeta> {

View file

@ -29,8 +29,6 @@ import cloud.commandframework.arguments.flags.FlagContext;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.CommandExecutionException; import cloud.commandframework.exceptions.CommandExecutionException;
import cloud.commandframework.execution.CommandExecutionHandler; import cloud.commandframework.execution.CommandExecutionHandler;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.invoke.MethodHandle; import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles; import java.lang.invoke.MethodHandles;
import java.lang.reflect.Method; import java.lang.reflect.Method;
@ -39,6 +37,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Optional; import java.util.Optional;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* A command execution handler that invokes a method. * A command execution handler that invokes a method.

View file

@ -24,12 +24,11 @@
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import cloud.commandframework.Command; import cloud.commandframework.Command;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Creates a command proxy for the command. This is similar to * Creates a command proxy for the command. This is similar to

View file

@ -23,13 +23,12 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Annotation version of adding {@link cloud.commandframework.arguments.preprocessor.RegexPreprocessor} * Annotation version of adding {@link cloud.commandframework.arguments.preprocessor.RegexPreprocessor}

View file

@ -23,9 +23,8 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
final class SyntaxFragment { final class SyntaxFragment {

View file

@ -23,8 +23,6 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
@ -32,6 +30,7 @@ import java.util.StringTokenizer;
import java.util.function.Function; import java.util.function.Function;
import java.util.function.Predicate; import java.util.function.Predicate;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Parses command syntax into syntax fragments * Parses command syntax into syntax fragments

View file

@ -26,14 +26,13 @@ package cloud.commandframework.annotations.parsers;
import cloud.commandframework.arguments.parser.ArgumentParseResult; import cloud.commandframework.arguments.parser.ArgumentParseResult;
import cloud.commandframework.arguments.parser.ArgumentParser; import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.invoke.MethodHandle; import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles; import java.lang.invoke.MethodHandles;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Represents a method annotated with {@link Parser} * Represents a method annotated with {@link Parser}

View file

@ -24,13 +24,12 @@
package cloud.commandframework.annotations.suggestions; package cloud.commandframework.annotations.suggestions;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.invoke.MethodHandle; import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles; import java.lang.invoke.MethodHandles;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.List; import java.util.List;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Represents a method annotated with {@link Suggestions} * Represents a method annotated with {@link Suggestions}

View file

@ -23,12 +23,11 @@
// //
package cloud.commandframework.annotations.suggestions; package cloud.commandframework.annotations.suggestions;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* This annotation allows you to create annotated methods that behave like suggestions providers. * This annotation allows you to create annotated methods that behave like suggestions providers.

View file

@ -38,7 +38,6 @@ import cloud.commandframework.arguments.standard.StringArgument;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.meta.SimpleCommandMeta; import cloud.commandframework.meta.SimpleCommandMeta;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@ -55,7 +54,6 @@ import java.util.Queue;
import java.util.Set; import java.util.Set;
import java.util.concurrent.CompletionException; import java.util.concurrent.CompletionException;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;

View file

@ -26,7 +26,6 @@ package cloud.commandframework.annotations;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;

View file

@ -38,9 +38,6 @@ import cloud.commandframework.permission.PredicatePermission;
import cloud.commandframework.types.tuples.Pair; import cloud.commandframework.types.tuples.Pair;
import cloud.commandframework.types.tuples.Triplet; import cloud.commandframework.types.tuples.Triplet;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,6 +48,8 @@ import java.util.Optional;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import java.util.function.Consumer; import java.util.function.Consumer;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* A command consists out of a chain of {@link CommandArgument command arguments}. * A command consists out of a chain of {@link CommandArgument command arguments}.

View file

@ -24,9 +24,8 @@
package cloud.commandframework; package cloud.commandframework;
import cloud.commandframework.arguments.CommandArgument; import cloud.commandframework.arguments.CommandArgument;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Objects; import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* A single literal or argument component of a command * A single literal or argument component of a command

View file

@ -26,9 +26,6 @@ package cloud.commandframework;
import cloud.commandframework.arguments.CommandArgument; import cloud.commandframework.arguments.CommandArgument;
import cloud.commandframework.arguments.StaticArgument; import cloud.commandframework.arguments.StaticArgument;
import cloud.commandframework.meta.CommandMeta; import cloud.commandframework.meta.CommandMeta;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.Comparator; import java.util.Comparator;
@ -39,6 +36,8 @@ import java.util.Locale;
import java.util.Objects; import java.util.Objects;
import java.util.Set; import java.util.Set;
import java.util.function.Predicate; import java.util.function.Predicate;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
public final class CommandHelpHandler<C> { public final class CommandHelpHandler<C> {

View file

@ -60,9 +60,6 @@ import cloud.commandframework.permission.PredicatePermission;
import cloud.commandframework.services.ServicePipeline; import cloud.commandframework.services.ServicePipeline;
import cloud.commandframework.services.State; import cloud.commandframework.services.State;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.EnumSet; import java.util.EnumSet;
@ -76,6 +73,8 @@ import java.util.concurrent.atomic.AtomicReference;
import java.util.function.BiConsumer; import java.util.function.BiConsumer;
import java.util.function.Function; import java.util.function.Function;
import java.util.function.Predicate; import java.util.function.Predicate;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* The manager is responsible for command registration, parsing delegation, etc. * The manager is responsible for command registration, parsing delegation, etc.

View file

@ -43,9 +43,6 @@ import cloud.commandframework.permission.OrPermission;
import cloud.commandframework.types.tuples.Pair; import cloud.commandframework.types.tuples.Pair;
import io.leangen.geantyref.GenericTypeReflector; import io.leangen.geantyref.GenericTypeReflector;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
@ -63,6 +60,8 @@ import java.util.Queue;
import java.util.Set; import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import java.util.stream.Stream; import java.util.stream.Stream;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* Tree containing all commands and command paths. * Tree containing all commands and command paths.

View file

@ -26,9 +26,8 @@ package cloud.commandframework;
import cloud.commandframework.execution.AsynchronousCommandExecutionCoordinator; import cloud.commandframework.execution.AsynchronousCommandExecutionCoordinator;
import cloud.commandframework.execution.CommandExecutionCoordinator; import cloud.commandframework.execution.CommandExecutionCoordinator;
import cloud.commandframework.internal.CommandRegistrationHandler; import cloud.commandframework.internal.CommandRegistrationHandler;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.function.Function; import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* {@link CommandManager} implementation that allows you to lock command registrations. * {@link CommandManager} implementation that allows you to lock command registrations.

View file

@ -23,15 +23,14 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement; import java.lang.reflect.AnnotatedElement;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.Objects; import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
final class AnnotatedElementAccessor implements AnnotationAccessor { final class AnnotatedElementAccessor implements AnnotationAccessor {

View file

@ -23,13 +23,12 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement; import java.lang.reflect.AnnotatedElement;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* Managed access for {@link java.lang.annotation.Annotation} instances * Managed access for {@link java.lang.annotation.Annotation} instances

View file

@ -23,14 +23,13 @@
// //
package cloud.commandframework.annotations; package cloud.commandframework.annotations;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
final class MultiDelegateAnnotationAccessor implements AnnotationAccessor { final class MultiDelegateAnnotationAccessor implements AnnotationAccessor {

View file

@ -28,9 +28,6 @@ import cloud.commandframework.context.CommandContext;
import cloud.commandframework.services.ServicePipeline; import cloud.commandframework.services.ServicePipeline;
import cloud.commandframework.types.tuples.Triplet; import cloud.commandframework.types.tuples.Triplet;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -39,6 +36,8 @@ import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Optional; import java.util.Optional;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* Registry containing mappings between {@link Class classes} and {@link ParameterInjector injectors} * Registry containing mappings between {@link Class classes} and {@link ParameterInjector injectors}

View file

@ -24,12 +24,11 @@
package cloud.commandframework.annotations.specifier; package cloud.commandframework.annotations.specifier;
import cloud.commandframework.arguments.parser.ArgumentParser; import cloud.commandframework.arguments.parser.ArgumentParser;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Used to specify min and max values of numerical * Used to specify min and max values of numerical

View file

@ -34,9 +34,6 @@ import cloud.commandframework.keys.CloudKey;
import cloud.commandframework.keys.CloudKeyHolder; import cloud.commandframework.keys.CloudKeyHolder;
import cloud.commandframework.keys.SimpleCloudKey; import cloud.commandframework.keys.SimpleCloudKey;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.LinkedList; import java.util.LinkedList;
@ -45,6 +42,8 @@ import java.util.Objects;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* A argument that belongs to a command * A argument that belongs to a command

View file

@ -24,9 +24,8 @@
package cloud.commandframework.arguments; package cloud.commandframework.arguments;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Handler that produces command suggestions depending on input * Handler that produces command suggestions depending on input

View file

@ -24,11 +24,10 @@
package cloud.commandframework.arguments; package cloud.commandframework.arguments;
import cloud.commandframework.CommandTree; import cloud.commandframework.CommandTree;
import java.util.List;
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 java.util.List;
/** /**
* Utility that formats chains of {@link CommandArgument command arguments} into syntax strings * Utility that formats chains of {@link CommandArgument command arguments} into syntax strings
* *

View file

@ -29,11 +29,10 @@ import cloud.commandframework.context.CommandContext;
import cloud.commandframework.execution.preprocessor.CommandPreprocessingContext; import cloud.commandframework.execution.preprocessor.CommandPreprocessingContext;
import cloud.commandframework.internal.CommandInputTokenizer; import cloud.commandframework.internal.CommandInputTokenizer;
import cloud.commandframework.services.State; import cloud.commandframework.services.State;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collections; import java.util.Collections;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Command suggestion engine that delegates to a {@link cloud.commandframework.CommandTree} * Command suggestion engine that delegates to a {@link cloud.commandframework.CommandTree}

View file

@ -25,10 +25,9 @@ package cloud.commandframework.arguments;
import cloud.commandframework.arguments.parser.ArgumentParser; import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.List; import java.util.List;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
final class DelegatingSuggestionsProvider<C> implements BiFunction<@NonNull CommandContext<C>, final class DelegatingSuggestionsProvider<C> implements BiFunction<@NonNull CommandContext<C>,
@NonNull String, @NonNull List<String>> { @NonNull String, @NonNull List<String>> {

View file

@ -27,11 +27,10 @@ import cloud.commandframework.CommandTree;
import cloud.commandframework.arguments.compound.CompoundArgument; import cloud.commandframework.arguments.compound.CompoundArgument;
import cloud.commandframework.arguments.compound.FlagArgument; import cloud.commandframework.arguments.compound.FlagArgument;
import cloud.commandframework.arguments.flags.CommandFlag; import cloud.commandframework.arguments.flags.CommandFlag;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* {@link CommandSyntaxFormatter} implementation that uses the following rules: * {@link CommandSyntaxFormatter} implementation that uses the following rules:

View file

@ -27,8 +27,6 @@ import cloud.commandframework.arguments.parser.ArgumentParseResult;
import cloud.commandframework.arguments.parser.ArgumentParser; import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
@ -37,6 +35,7 @@ import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.Set; import java.util.Set;
import java.util.TreeSet; import java.util.TreeSet;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* {@link CommandArgument} type that recognizes fixed strings. This type does not parse variables. * {@link CommandArgument} type that recognizes fixed strings. This type does not parse variables.

View file

@ -29,9 +29,8 @@ import cloud.commandframework.arguments.parser.ParserParameters;
import cloud.commandframework.arguments.parser.ParserRegistry; import cloud.commandframework.arguments.parser.ParserRegistry;
import cloud.commandframework.types.tuples.Pair; import cloud.commandframework.types.tuples.Pair;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* A compound argument consisting of two inner arguments * A compound argument consisting of two inner arguments

View file

@ -29,9 +29,8 @@ import cloud.commandframework.arguments.parser.ParserParameters;
import cloud.commandframework.arguments.parser.ParserRegistry; import cloud.commandframework.arguments.parser.ParserRegistry;
import cloud.commandframework.types.tuples.Triplet; import cloud.commandframework.types.tuples.Triplet;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* A compound argument consisting of three inner arguments * A compound argument consisting of three inner arguments

View file

@ -29,12 +29,11 @@ import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.types.tuples.Tuple; import cloud.commandframework.types.tuples.Tuple;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import java.util.function.Function; import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Compound argument * Compound argument

View file

@ -35,8 +35,6 @@ import cloud.commandframework.exceptions.parsing.ParserException;
import cloud.commandframework.keys.CloudKey; import cloud.commandframework.keys.CloudKey;
import cloud.commandframework.keys.SimpleCloudKey; import cloud.commandframework.keys.SimpleCloudKey;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.HashSet; import java.util.HashSet;
@ -49,6 +47,7 @@ import java.util.Set;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Container for flag parsing logic. This should not be be used directly. * Container for flag parsing logic. This should not be be used directly.

View file

@ -27,14 +27,13 @@ import cloud.commandframework.ArgumentDescription;
import cloud.commandframework.arguments.CommandArgument; import cloud.commandframework.arguments.CommandArgument;
import cloud.commandframework.permission.CommandPermission; import cloud.commandframework.permission.CommandPermission;
import cloud.commandframework.permission.Permission; import cloud.commandframework.permission.Permission;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.HashSet; import java.util.HashSet;
import java.util.Objects; import java.util.Objects;
import java.util.Set; import java.util.Set;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* A flag is an optional command argument that may have an associated parser, * A flag is an optional command argument that may have an associated parser,

View file

@ -23,12 +23,11 @@
// //
package cloud.commandframework.arguments.flags; package cloud.commandframework.arguments.flags;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.Optional; import java.util.Optional;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* Flag value mappings * Flag value mappings

View file

@ -23,10 +23,9 @@
// //
package cloud.commandframework.arguments.parser; package cloud.commandframework.arguments.parser;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Optional; import java.util.Optional;
import java.util.function.Function; import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Result of the parsing done by a {@link ArgumentParser} * Result of the parsing done by a {@link ArgumentParser}

View file

@ -24,12 +24,11 @@
package cloud.commandframework.arguments.parser; package cloud.commandframework.arguments.parser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import static java.util.Objects.requireNonNull; import static java.util.Objects.requireNonNull;

View file

@ -24,12 +24,11 @@
package cloud.commandframework.arguments.parser; package cloud.commandframework.arguments.parser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* An argument parser which wraps another argument parser, converting the output type. * An argument parser which wraps another argument parser, converting the output type.

View file

@ -24,9 +24,8 @@
package cloud.commandframework.arguments.parser; package cloud.commandframework.arguments.parser;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Objects; import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Parser parameter used when retrieving parsers from the {@link ParserRegistry} * Parser parameter used when retrieving parsers from the {@link ParserRegistry}

View file

@ -23,11 +23,10 @@
// //
package cloud.commandframework.arguments.parser; package cloud.commandframework.arguments.parser;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Collection of {@link ParserParameter parameter}-{@link Object object} pairs * Collection of {@link ParserParameter parameter}-{@link Object object} pairs

View file

@ -25,14 +25,13 @@ package cloud.commandframework.arguments.parser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
import java.util.Optional; import java.util.Optional;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import java.util.function.Function; import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Registry of {@link ArgumentParser} that allows these arguments to be * Registry of {@link ArgumentParser} that allows these arguments to be

View file

@ -42,8 +42,6 @@ import cloud.commandframework.arguments.standard.UUIDArgument;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import io.leangen.geantyref.GenericTypeReflector; import io.leangen.geantyref.GenericTypeReflector;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
@ -55,6 +53,7 @@ import java.util.Optional;
import java.util.UUID; import java.util.UUID;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import java.util.function.Function; import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Standard implementation of {@link ParserRegistry} * Standard implementation of {@link ParserRegistry}

View file

@ -29,12 +29,11 @@ import cloud.commandframework.captions.CaptionVariable;
import cloud.commandframework.captions.StandardCaptionKeys; import cloud.commandframework.captions.StandardCaptionKeys;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import java.util.function.Predicate; import java.util.function.Predicate;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Command preprocessor that filters based on regular expressions * Command preprocessor that filters based on regular expressions

View file

@ -32,13 +32,12 @@ import cloud.commandframework.captions.StandardCaptionKeys;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.ParserException; import cloud.commandframework.exceptions.parsing.ParserException;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class BooleanArgument<C> extends CommandArgument<C, Boolean> { public final class BooleanArgument<C> extends CommandArgument<C, Boolean> {

View file

@ -30,12 +30,11 @@ import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.NumberParseException; import cloud.commandframework.exceptions.parsing.NumberParseException;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class ByteArgument<C> extends CommandArgument<C, Byte> { public final class ByteArgument<C> extends CommandArgument<C, Byte> {

View file

@ -32,12 +32,11 @@ import cloud.commandframework.captions.StandardCaptionKeys;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.ParserException; import cloud.commandframework.exceptions.parsing.ParserException;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class CharArgument<C> extends CommandArgument<C, Character> { public final class CharArgument<C> extends CommandArgument<C, Character> {

View file

@ -30,12 +30,11 @@ import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.NumberParseException; import cloud.commandframework.exceptions.parsing.NumberParseException;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class DoubleArgument<C> extends CommandArgument<C, Double> { public final class DoubleArgument<C> extends CommandArgument<C, Double> {

View file

@ -32,14 +32,13 @@ import cloud.commandframework.captions.StandardCaptionKeys;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.ParserException; import cloud.commandframework.exceptions.parsing.ParserException;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.EnumSet; import java.util.EnumSet;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* Argument type that recognizes enums * Argument type that recognizes enums

View file

@ -30,12 +30,11 @@ import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.NumberParseException; import cloud.commandframework.exceptions.parsing.NumberParseException;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class FloatArgument<C> extends CommandArgument<C, Float> { public final class FloatArgument<C> extends CommandArgument<C, Float> {

View file

@ -30,9 +30,6 @@ import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.NumberParseException; import cloud.commandframework.exceptions.parsing.NumberParseException;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Collections; import java.util.Collections;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
@ -40,6 +37,8 @@ import java.util.Queue;
import java.util.Set; import java.util.Set;
import java.util.TreeSet; import java.util.TreeSet;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class IntegerArgument<C> extends CommandArgument<C, Integer> { public final class IntegerArgument<C> extends CommandArgument<C, Integer> {

View file

@ -30,12 +30,11 @@ import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.NumberParseException; import cloud.commandframework.exceptions.parsing.NumberParseException;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class LongArgument<C> extends CommandArgument<C, Long> { public final class LongArgument<C> extends CommandArgument<C, Long> {

View file

@ -30,12 +30,11 @@ import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.NumberParseException; import cloud.commandframework.exceptions.parsing.NumberParseException;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class ShortArgument<C> extends CommandArgument<C, Short> { public final class ShortArgument<C> extends CommandArgument<C, Short> {

View file

@ -33,8 +33,6 @@ import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.ParserException; import cloud.commandframework.exceptions.parsing.ParserException;
import cloud.commandframework.util.StringUtils; import cloud.commandframework.util.StringUtils;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
@ -42,6 +40,7 @@ import java.util.StringJoiner;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.checkerframework.checker.nullness.qual.NonNull;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class StringArgument<C> extends CommandArgument<C, String> { public final class StringArgument<C> extends CommandArgument<C, String> {

View file

@ -29,12 +29,11 @@ import cloud.commandframework.arguments.parser.ArgumentParseResult;
import cloud.commandframework.arguments.parser.ArgumentParser; import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* This is a command argument type that essentially mimics {@link StringArgument#greedy(String)}, * This is a command argument type that essentially mimics {@link StringArgument#greedy(String)},

View file

@ -32,13 +32,12 @@ import cloud.commandframework.captions.StandardCaptionKeys;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.ParserException; import cloud.commandframework.exceptions.parsing.ParserException;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.UUID; import java.util.UUID;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class UUIDArgument<C> extends CommandArgument<C, UUID> { public final class UUIDArgument<C> extends CommandArgument<C, UUID> {

View file

@ -23,9 +23,8 @@
// //
package cloud.commandframework.captions; package cloud.commandframework.captions;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Objects; import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* This is a reference to a caption and does not contain any message itself * This is a reference to a caption and does not contain any message itself

View file

@ -23,9 +23,8 @@
// //
package cloud.commandframework.captions; package cloud.commandframework.captions;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Caption registry that delegates to factory methods * Caption registry that delegates to factory methods

View file

@ -23,11 +23,10 @@
// //
package cloud.commandframework.captions; package cloud.commandframework.captions;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Caption registry that uses bi-functions to produce messages * Caption registry that uses bi-functions to produce messages

View file

@ -23,11 +23,10 @@
// //
package cloud.commandframework.captions; package cloud.commandframework.captions;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.LinkedList; import java.util.LinkedList;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* {@link Caption} instances for messages in cloud-core * {@link Caption} instances for messages in cloud-core

View file

@ -36,15 +36,14 @@ import cloud.commandframework.keys.CloudKey;
import cloud.commandframework.keys.CloudKeyHolder; import cloud.commandframework.keys.CloudKeyHolder;
import cloud.commandframework.keys.SimpleCloudKey; import cloud.commandframework.keys.SimpleCloudKey;
import cloud.commandframework.permission.CommandPermission; import cloud.commandframework.permission.CommandPermission;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.Map; import java.util.Map;
import java.util.Optional; import java.util.Optional;
import java.util.function.Supplier; import java.util.function.Supplier;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* Command context used to assist in the parsing of commands * Command context used to assist in the parsing of commands

View file

@ -26,11 +26,10 @@ package cloud.commandframework.exceptions;
import cloud.commandframework.CommandTree; import cloud.commandframework.CommandTree;
import cloud.commandframework.arguments.CommandArgument; import cloud.commandframework.arguments.CommandArgument;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* Exception thrown when a {@link CommandContext} * Exception thrown when a {@link CommandContext}

View file

@ -24,9 +24,8 @@
package cloud.commandframework.exceptions; package cloud.commandframework.exceptions;
import cloud.commandframework.arguments.CommandArgument; import cloud.commandframework.arguments.CommandArgument;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
public class ArgumentParseException extends CommandParseException { public class ArgumentParseException extends CommandParseException {

View file

@ -24,10 +24,9 @@
package cloud.commandframework.exceptions; package cloud.commandframework.exceptions;
import cloud.commandframework.arguments.CommandArgument; import cloud.commandframework.arguments.CommandArgument;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Exception thrown when parsing user input into a command * Exception thrown when parsing user input into a command

View file

@ -25,11 +25,10 @@ package cloud.commandframework.exceptions;
import cloud.commandframework.Command; import cloud.commandframework.Command;
import cloud.commandframework.arguments.CommandArgument; import cloud.commandframework.arguments.CommandArgument;
import java.util.List;
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 java.util.List;
/** /**
* Exception thrown when an invalid command sender tries to execute a command * Exception thrown when an invalid command sender tries to execute a command
*/ */

View file

@ -24,9 +24,8 @@
package cloud.commandframework.exceptions; package cloud.commandframework.exceptions;
import cloud.commandframework.arguments.CommandArgument; import cloud.commandframework.arguments.CommandArgument;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Exception sent when a command sender inputs invalid command syntax * Exception sent when a command sender inputs invalid command syntax

View file

@ -26,9 +26,8 @@ package cloud.commandframework.exceptions;
import cloud.commandframework.Command; import cloud.commandframework.Command;
import cloud.commandframework.arguments.CommandArgument; import cloud.commandframework.arguments.CommandArgument;
import cloud.commandframework.permission.CommandPermission; import cloud.commandframework.permission.CommandPermission;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Exception thrown when a command sender misses a permission required * Exception thrown when a command sender misses a permission required

View file

@ -24,9 +24,8 @@
package cloud.commandframework.exceptions; package cloud.commandframework.exceptions;
import cloud.commandframework.arguments.CommandArgument; import cloud.commandframework.arguments.CommandArgument;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Exception thrown when a command sender tries to execute * Exception thrown when a command sender tries to execute

View file

@ -26,9 +26,8 @@ package cloud.commandframework.exceptions.parsing;
import cloud.commandframework.captions.Caption; import cloud.commandframework.captions.Caption;
import cloud.commandframework.captions.CaptionVariable; import cloud.commandframework.captions.CaptionVariable;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Arrays; import java.util.Arrays;
import org.checkerframework.checker.nullness.qual.NonNull;
public class ParserException extends IllegalArgumentException { public class ParserException extends IllegalArgumentException {

View file

@ -30,15 +30,14 @@ import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.CommandExecutionException; import cloud.commandframework.exceptions.CommandExecutionException;
import cloud.commandframework.services.State; import cloud.commandframework.services.State;
import cloud.commandframework.types.tuples.Pair; import cloud.commandframework.types.tuples.Pair;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Queue; import java.util.Queue;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor; import java.util.concurrent.Executor;
import java.util.concurrent.ForkJoinPool; import java.util.concurrent.ForkJoinPool;
import java.util.function.Consumer; import java.util.function.Consumer;
import java.util.function.Function; import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* Execution coordinator parses and/or executes commands on a separate thread from the calling thread * Execution coordinator parses and/or executes commands on a separate thread from the calling thread

View file

@ -29,13 +29,12 @@ import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.CommandExecutionException; import cloud.commandframework.exceptions.CommandExecutionException;
import cloud.commandframework.services.State; import cloud.commandframework.services.State;
import cloud.commandframework.types.tuples.Pair; import cloud.commandframework.types.tuples.Pair;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Objects; import java.util.Objects;
import java.util.Queue; import java.util.Queue;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
import java.util.function.Function; import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/** /**
* The command execution coordinator is responsible for * The command execution coordinator is responsible for

View file

@ -25,9 +25,7 @@ package cloud.commandframework.execution;
import cloud.commandframework.Command; import cloud.commandframework.Command;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
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;

View file

@ -24,10 +24,9 @@
package cloud.commandframework.execution; package cloud.commandframework.execution;
import cloud.commandframework.execution.preprocessor.CommandPreprocessingContext; import cloud.commandframework.execution.preprocessor.CommandPreprocessingContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.List; import java.util.List;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Processor that formats command suggestions * Processor that formats command suggestions

View file

@ -24,10 +24,9 @@
package cloud.commandframework.execution; package cloud.commandframework.execution;
import cloud.commandframework.execution.preprocessor.CommandPreprocessingContext; import cloud.commandframework.execution.preprocessor.CommandPreprocessingContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Command suggestions processor that checks the input queue head and filters based on that * Command suggestions processor that checks the input queue head and filters based on that

View file

@ -25,9 +25,8 @@ package cloud.commandframework.execution.postprocessor;
import cloud.commandframework.Command; import cloud.commandframework.Command;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Objects; import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Context for {@link CommandPostprocessor command postprocessors} * Context for {@link CommandPostprocessor command postprocessors}

View file

@ -24,10 +24,9 @@
package cloud.commandframework.execution.preprocessor; package cloud.commandframework.execution.preprocessor;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.Objects; import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Context for {@link CommandPreprocessor command preprocessors} * Context for {@link CommandPreprocessor command preprocessors}

View file

@ -31,16 +31,13 @@ import cloud.commandframework.meta.CommandMeta;
import cloud.commandframework.meta.SimpleCommandMeta; import cloud.commandframework.meta.SimpleCommandMeta;
import cloud.commandframework.services.types.ConsumerService; import cloud.commandframework.services.types.ConsumerService;
import cloud.commandframework.types.tuples.Pair; import cloud.commandframework.types.tuples.Pair;
import java.util.concurrent.CompletableFuture;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
import java.util.Optional; import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.function.Consumer; import java.util.function.Consumer;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Manager for the command confirmation system that enables the ability to add "confirmation" requirements to commands, * Manager for the command confirmation system that enables the ability to add "confirmation" requirements to commands,

View file

@ -23,10 +23,9 @@
// //
package cloud.commandframework.internal; package cloud.commandframework.internal;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.StringTokenizer; import java.util.StringTokenizer;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Tokenizer that splits command inputs into tokens. This will split the string * Tokenizer that splits command inputs into tokens. This will split the string

View file

@ -24,9 +24,8 @@
package cloud.commandframework.keys; package cloud.commandframework.keys;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Objects; import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Simple immutable implementation of {@link CloudKey}. Key equality is * Simple immutable implementation of {@link CloudKey}. Key equality is

View file

@ -27,12 +27,11 @@ import cloud.commandframework.Command;
import cloud.commandframework.keys.CloudKey; import cloud.commandframework.keys.CloudKey;
import io.leangen.geantyref.GenericTypeReflector; import io.leangen.geantyref.GenericTypeReflector;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Map; import java.util.Map;
import java.util.Optional; import java.util.Optional;
import java.util.function.Function; import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import static java.util.Objects.requireNonNull; import static java.util.Objects.requireNonNull;

View file

@ -24,14 +24,13 @@
package cloud.commandframework.meta; package cloud.commandframework.meta;
import io.leangen.geantyref.GenericTypeReflector; import io.leangen.geantyref.GenericTypeReflector;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.Objects; import java.util.Objects;
import java.util.Optional; import java.util.Optional;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* A simple immutable string-string map containing command meta * A simple immutable string-string map containing command meta

View file

@ -25,11 +25,10 @@ package cloud.commandframework.meta;
import io.leangen.geantyref.GenericTypeReflector; import io.leangen.geantyref.GenericTypeReflector;
import io.leangen.geantyref.TypeToken; import io.leangen.geantyref.TypeToken;
import java.util.function.Function;
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 java.util.function.Function;
final class SimpleKey<V> implements CommandMeta.Key<V> { final class SimpleKey<V> implements CommandMeta.Key<V> {
private final @NonNull TypeToken<V> valueType; private final @NonNull TypeToken<V> valueType;

View file

@ -23,14 +23,13 @@
// //
package cloud.commandframework.permission; package cloud.commandframework.permission;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.HashSet; import java.util.HashSet;
import java.util.Iterator; import java.util.Iterator;
import java.util.Objects; import java.util.Objects;
import java.util.Set; import java.util.Set;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Accepts if every single permission is accepted. * Accepts if every single permission is accepted.

View file

@ -23,12 +23,11 @@
// //
package cloud.commandframework.permission; package cloud.commandframework.permission;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
import org.checkerframework.checker.nullness.qual.NonNull;
import static java.util.Objects.requireNonNull; import static java.util.Objects.requireNonNull;

View file

@ -23,14 +23,13 @@
// //
package cloud.commandframework.permission; package cloud.commandframework.permission;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.HashSet; import java.util.HashSet;
import java.util.Iterator; import java.util.Iterator;
import java.util.Objects; import java.util.Objects;
import java.util.Set; import java.util.Set;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* Accepts as long as at least one of the permissions is accepted * Accepts as long as at least one of the permissions is accepted

View file

@ -23,11 +23,10 @@
// //
package cloud.commandframework.permission; package cloud.commandframework.permission;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.Objects; import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* {@link cloud.commandframework.arguments.CommandArgument} permission * {@link cloud.commandframework.arguments.CommandArgument} permission

View file

@ -26,11 +26,10 @@ package cloud.commandframework.permission;
import cloud.commandframework.keys.CloudKey; import cloud.commandframework.keys.CloudKey;
import cloud.commandframework.keys.CloudKeyHolder; import cloud.commandframework.keys.CloudKeyHolder;
import cloud.commandframework.keys.SimpleCloudKey; import cloud.commandframework.keys.SimpleCloudKey;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.function.Predicate; import java.util.function.Predicate;
import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
* A functional {@link CommandPermission} implementation * A functional {@link CommandPermission} implementation

View file

@ -24,9 +24,8 @@
package cloud.commandframework.permission; package cloud.commandframework.permission;
import cloud.commandframework.keys.CloudKey; import cloud.commandframework.keys.CloudKey;
import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.function.Predicate; import java.util.function.Predicate;
import org.checkerframework.checker.nullness.qual.NonNull;
final class WrappingPredicatePermission<C> implements PredicatePermission<C> { final class WrappingPredicatePermission<C> implements PredicatePermission<C> {

Some files were not shown because too many files have changed in this diff Show more