Change default values in GETDumpsType.java to be immutable versions

This commit is contained in:
Colin McDonald 2016-07-11 22:56:30 -04:00
parent e65686f339
commit 8e85914d64

View File

@ -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());