mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
cleanup
This commit is contained in:
6 files changed
+17
-12
No files matched your search
@@ -22,7 +22,6 @@ package net.draycia.carbon.common.command.commands;
|
||||
import cloud.commandframework.ArgumentDescription;
|
||||
import cloud.commandframework.CommandManager;
|
||||
import cloud.commandframework.arguments.standard.UUIDArgument;
|
||||
import cloud.commandframework.exceptions.CommandExecutionException;
|
||||
import cloud.commandframework.minecraft.extras.MinecraftExtrasMetaKeys;
|
||||
import com.google.inject.Inject;
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -22,7 +22,6 @@ package net.draycia.carbon.common.command.commands;
|
||||
import cloud.commandframework.ArgumentDescription;
|
||||
import cloud.commandframework.CommandManager;
|
||||
import cloud.commandframework.arguments.standard.UUIDArgument;
|
||||
import cloud.commandframework.exceptions.CommandExecutionException;
|
||||
import cloud.commandframework.minecraft.extras.MinecraftExtrasMetaKeys;
|
||||
import com.google.inject.Inject;
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -20,6 +20,7 @@ package net.draycia.carbon.common.messages;
|
||||
import java.util.Iterator;
|
||||
|
||||
public final class PrefixedDelegateIterator<T> implements Iterator<T> {
|
||||
|
||||
private final T prefix;
|
||||
private final Iterator<T> delegate;
|
||||
private boolean seenPrefix = false;
|
||||
@@ -52,4 +53,5 @@ public final class PrefixedDelegateIterator<T> implements Iterator<T> {
|
||||
|
||||
this.delegate.remove();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,18 +1,20 @@
|
||||
/*
|
||||
* moonshine - A localisation library for Java.
|
||||
* Copyright (C) Mariell Hoversholm
|
||||
* CarbonChat
|
||||
*
|
||||
* Copyright (c) 2021 Josua Parks (Vicarious)
|
||||
* Contributors
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package net.draycia.carbon.common.messages;
|
||||
|
||||
+5
-4
@@ -17,8 +17,6 @@
|
||||
*/
|
||||
package net.draycia.carbon.common.messages;
|
||||
|
||||
import static java.util.Collections.emptyNavigableSet;
|
||||
|
||||
import io.leangen.geantyref.GenericTypeReflector;
|
||||
import java.lang.reflect.Parameter;
|
||||
import java.lang.reflect.Type;
|
||||
@@ -39,9 +37,11 @@ import net.kyori.moonshine.strategy.supertype.ISupertypeStrategy;
|
||||
import net.kyori.moonshine.strategy.supertype.StandardSupertypeThenInterfaceSupertypeStrategy;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
import static java.util.Collections.emptyNavigableSet;
|
||||
|
||||
@ThreadSafe
|
||||
public final class StandardPlaceholderResolverStrategyButDifferent<R, I, F> implements
|
||||
IPlaceholderResolverStrategy<R, I, F> {
|
||||
public final class StandardPlaceholderResolverStrategyButDifferent<R, I, F> implements IPlaceholderResolverStrategy<R, I, F> {
|
||||
|
||||
private final ISupertypeStrategy supertypeStrategy = new StandardSupertypeThenInterfaceSupertypeStrategy(false);
|
||||
|
||||
@Override
|
||||
@@ -149,4 +149,5 @@ public final class StandardPlaceholderResolverStrategyButDifferent<R, I, F> impl
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user