From a55e690ad63ffb1fb4f89d1439332f6844112995 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 21 Jul 2020 19:41:15 -0400 Subject: [PATCH] These aren't designed to be extended in any way. --- .../java/com/velocitypowered/proxy/util/collect/CappedSet.java | 2 +- .../com/velocitypowered/proxy/util/collect/Enum2IntMap.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {