diff --git a/proxy/src/main/java/com/velocitypowered/proxy/util/collect/CappedSet.java b/proxy/src/main/java/com/velocitypowered/proxy/util/collect/CappedSet.java index 334670bfd..492a34540 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/util/collect/CappedSet.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/util/collect/CappedSet.java @@ -9,7 +9,7 @@ import java.util.Set; /** * An unsynchronized collection that puts an upper bound on the size of the collection. */ -public class CappedSet extends ForwardingSet { +public final class CappedSet extends ForwardingSet { private final Set delegate; private final int upperSize; diff --git a/proxy/src/main/java/com/velocitypowered/proxy/util/collect/Enum2IntMap.java b/proxy/src/main/java/com/velocitypowered/proxy/util/collect/Enum2IntMap.java index dc78b7bc7..99621a352 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/util/collect/Enum2IntMap.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/util/collect/Enum2IntMap.java @@ -6,7 +6,7 @@ import java.util.EnumSet; * An immutable map of {@link Enum} entries to {@code int}s. * @param the enum type */ -public class Enum2IntMap> { +public final class Enum2IntMap> { private final int[] mappings; private Enum2IntMap(int[] mappings) {