diff --git a/src/main/java/net/neoforged/neoforge/common/util/InsertableLinkedOpenCustomHashSet.java b/src/main/java/net/neoforged/neoforge/common/util/InsertableLinkedOpenCustomHashSet.java index 1613159b9b..c3049af8b1 100644 --- a/src/main/java/net/neoforged/neoforge/common/util/InsertableLinkedOpenCustomHashSet.java +++ b/src/main/java/net/neoforged/neoforge/common/util/InsertableLinkedOpenCustomHashSet.java @@ -32,6 +32,7 @@ public InsertableLinkedOpenCustomHashSet() { /** * Constructs a new {@link InsertableLinkedOpenCustomHashSet} with the given {@link Hash.Strategy}. + * * @param strategy The strategy to use for adding and getting elements from the set. */ public InsertableLinkedOpenCustomHashSet(Hash.Strategy strategy) { @@ -42,8 +43,9 @@ public InsertableLinkedOpenCustomHashSet(Hash.Strategy strategy) { * This method will attempt to add {@code element} after the given element {@code insertAfter} in the set. If an * element matching {@code insertAfter} cannot be found with this set's {@link Hash.Strategy}, then {@code element} * will be added in insertion order. If {#code element} already exists in the set, then the set is not modified. + * * @param insertAfter The element to insert {@code element} after. - * @param element The element to add into this set. + * @param element The element to add into this set. * @return {@code true} if the element was added to the set. */ public boolean addAfter(T insertAfter, T element) { @@ -83,8 +85,9 @@ public boolean addAfter(T insertAfter, T element) { * This method will attempt to add {@code element} before the given element {@code insertBefore} in the set. If an * element matching {@code insertBefore} cannot be found with this set's {@link Hash.Strategy}, then {@code element} * will be added in insertion order. If {#code element} already exists in the set, then the set is not modified. + * * @param insertBefore The element to insert {@code element} before. - * @param element The element to add into this set. + * @param element The element to add into this set. * @return {@code true} if the element was added to the set. */ public boolean addBefore(T insertBefore, T element) { diff --git a/tests/src/junit/java/net/neoforged/neoforge/unittest/CreativeTabOrderTest.java b/tests/src/junit/java/net/neoforged/neoforge/unittest/CreativeTabOrderTest.java index 20092c6d35..4b4eb1cd44 100644 --- a/tests/src/junit/java/net/neoforged/neoforge/unittest/CreativeTabOrderTest.java +++ b/tests/src/junit/java/net/neoforged/neoforge/unittest/CreativeTabOrderTest.java @@ -11,7 +11,6 @@ import java.util.List; import java.util.Set; import java.util.stream.IntStream; -import net.minecraft.core.HolderLookup; import net.minecraft.core.component.DataComponents; import net.minecraft.core.registries.Registries; import net.minecraft.network.chat.Component; @@ -20,7 +19,6 @@ import net.minecraft.server.MinecraftServer; import net.minecraft.tags.ItemTags; import net.minecraft.tags.TagKey; -import net.minecraft.world.flag.FeatureFlagSet; import net.minecraft.world.flag.FeatureFlags; import net.minecraft.world.item.CreativeModeTab; import net.minecraft.world.item.CreativeModeTabs; diff --git a/tests/src/junit/java/net/neoforged/neoforge/unittest/InsertableLinkedOpenCustomHashSetTest.java b/tests/src/junit/java/net/neoforged/neoforge/unittest/InsertableLinkedOpenCustomHashSetTest.java index 9359b2eedf..e000a30be4 100644 --- a/tests/src/junit/java/net/neoforged/neoforge/unittest/InsertableLinkedOpenCustomHashSetTest.java +++ b/tests/src/junit/java/net/neoforged/neoforge/unittest/InsertableLinkedOpenCustomHashSetTest.java @@ -5,10 +5,9 @@ package net.neoforged.neoforge.unittest; -import java.util.stream.IntStream; - import it.unimi.dsi.fastutil.Hash; import it.unimi.dsi.fastutil.objects.ObjectLinkedOpenHashSet; +import java.util.stream.IntStream; import net.neoforged.neoforge.common.util.InsertableLinkedOpenCustomHashSet; import org.jetbrains.annotations.Nullable; import org.junit.jupiter.api.Assertions;