Simple cleanup.

This commit is contained in:
Photon-GitHub 2023-07-16 00:24:38 +02:00
parent 3a30fe9669
commit 700012c92c
2 changed files with 9 additions and 7 deletions

View File

@ -1,12 +1,13 @@
package com.comphenix.protocol.reflect.fuzzy;
import com.google.common.collect.Maps;
import javax.annotation.Nonnull;
import java.lang.reflect.Member;
import java.lang.reflect.Modifier;
import java.util.Map;
import java.util.Objects;
import java.util.regex.Pattern;
import javax.annotation.Nonnull;
/**
* Represents a matcher that matches members.
@ -186,7 +187,7 @@ public abstract class AbstractFuzzyMember<T extends Member> implements AbstractF
*
* @author Kristian
*/
public static abstract class Builder<T extends AbstractFuzzyMember<?>> {
public abstract static class Builder<T extends AbstractFuzzyMember<?>> {
protected T member = this.initialMember();

View File

@ -1,18 +1,19 @@
package com.comphenix.protocol.reflect.cloning;
import static org.junit.jupiter.api.Assertions.assertEquals;
import com.comphenix.protocol.BukkitInitialization;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.events.PacketContainer;
import java.util.Arrays;
import java.util.List;
import net.minecraft.core.NonNullList;
import net.minecraft.world.item.ItemStack;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class AggregateClonerTest {
@BeforeAll
@ -21,7 +22,7 @@ public class AggregateClonerTest {
}
@Test
public void testArrays() {
void testArrays() {
List<Integer> input = Arrays.asList(1, 2, 3);
assertEquals(input, AggregateCloner.DEFAULT.clone(input));
}