CappedSet.newCappedSet() -> CappedSet.create()

This commit is contained in:
Andrew Steinborn
2019-05-14 04:11:49 -04:00
parent 57085feb42
commit 5bd9f0a96f
3 changed files with 5 additions and 5 deletions

View File

@@ -108,7 +108,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
this.virtualHost = virtualHost;
this.permissionFunction = PermissionFunction.ALWAYS_UNDEFINED;
this.connectionPhase = minecraftConnection.getType().getInitialClientPhase();
this.knownChannels = CappedSet.newCappedSet(MAX_PLUGIN_CHANNELS);
this.knownChannels = CappedSet.create(MAX_PLUGIN_CHANNELS);
}
@Override

View File

@@ -26,7 +26,7 @@ public class CappedSet<T> extends ForwardingSet<T> {
* @param <T> the type of elements in the collection
* @return the new collection
*/
public static <T> Set<T> newCappedSet(int maxSize) {
public static <T> Set<T> create(int maxSize) {
return new CappedSet<>(new HashSet<>(), maxSize);
}