Change default values in GETDumpsType.java to be immutable versions
This commit is contained in:
parent
e65686f339
commit
8e85914d64
@ -1,5 +1,7 @@
|
||||
package net.frozenorb.apiv3.route;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import io.vertx.core.Handler;
|
||||
import io.vertx.ext.web.RoutingContext;
|
||||
@ -13,9 +15,9 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
public final class GETDumpsType implements Handler<RoutingContext> {
|
||||
|
||||
private static List<UUID> banCache = new LinkedList<>();
|
||||
private static List<UUID> blacklistCache = new LinkedList<>();
|
||||
private static Map<String, List<UUID>> grantCache = new HashMap<>();
|
||||
private static List<UUID> banCache = ImmutableList.of();
|
||||
private static List<UUID> blacklistCache = ImmutableList.of();
|
||||
private static Map<String, List<UUID>> grantCache = ImmutableMap.of();
|
||||
|
||||
static {
|
||||
APIv3.getVertxInstance().setPeriodic(TimeUnit.MINUTES.toMillis(5), (id) -> updateCache());
|
||||
|
Loading…
Reference in New Issue
Block a user