From 1f6c479351dec37d71583d3b8bb5e45a1d434965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Sun, 21 Jan 2024 20:48:34 +0100 Subject: [PATCH] spotless :) --- .../annotations/feature/EitherExample.java | 31 +++++++++++++++++-- .../bukkit/builder/feature/EitherExample.java | 26 ++++++++++++++-- 2 files changed, 52 insertions(+), 5 deletions(-) diff --git a/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/annotations/feature/EitherExample.java b/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/annotations/feature/EitherExample.java index 53fb2ce3..64e5e904 100644 --- a/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/annotations/feature/EitherExample.java +++ b/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/annotations/feature/EitherExample.java @@ -1,3 +1,26 @@ +// +// MIT License +// +// Copyright (c) 2024 Incendo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. +// package cloud.commandframework.examples.bukkit.annotations.feature; import cloud.commandframework.annotations.AnnotationParser; @@ -5,14 +28,13 @@ import cloud.commandframework.examples.bukkit.ExamplePlugin; import cloud.commandframework.examples.bukkit.annotations.AnnotationFeature; import cloud.commandframework.types.Either; +import java.util.UUID; import net.kyori.adventure.platform.bukkit.BukkitAudiences; import net.kyori.adventure.text.format.NamedTextColor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.checkerframework.checker.nullness.qual.NonNull; -import java.util.UUID; - import static net.kyori.adventure.text.Component.text; /** @@ -23,7 +45,10 @@ public final class EitherExample implements AnnotationFeature { private BukkitAudiences bukkitAudiences; @Override - public void registerFeature(final @NonNull ExamplePlugin examplePlugin, final @NonNull AnnotationParser annotationParser) { + public void registerFeature( + final @NonNull ExamplePlugin examplePlugin, + final @NonNull AnnotationParser annotationParser + ) { this.bukkitAudiences = examplePlugin.bukkitAudiences(); annotationParser.parse(this); } diff --git a/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/builder/feature/EitherExample.java b/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/builder/feature/EitherExample.java index 8dd43552..164c0205 100644 --- a/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/builder/feature/EitherExample.java +++ b/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/builder/feature/EitherExample.java @@ -1,3 +1,26 @@ +// +// MIT License +// +// Copyright (c) 2024 Incendo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. +// package cloud.commandframework.examples.bukkit.builder.feature; import cloud.commandframework.arguments.parser.ArgumentParser; @@ -9,13 +32,12 @@ import cloud.commandframework.keys.CloudKey; import cloud.commandframework.types.Either; import io.leangen.geantyref.TypeToken; +import java.util.UUID; import net.kyori.adventure.text.format.NamedTextColor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.checkerframework.checker.nullness.qual.NonNull; -import java.util.UUID; - import static net.kyori.adventure.text.Component.text; /**