diff --git a/pom.xml b/pom.xml index f55e68f..431e17d 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ UTF-8 - 1.7.10-R0.1-SNAPSHOT + 1.8-R0.1-SNAPSHOT diff --git a/src/main/java/org/tyrannyofheaven/bukkit/util/uuid/MojangUuidResolver.java b/src/main/java/org/tyrannyofheaven/bukkit/util/uuid/MojangUuidResolver.java index 9be0331..6a19625 100644 --- a/src/main/java/org/tyrannyofheaven/bukkit/util/uuid/MojangUuidResolver.java +++ b/src/main/java/org/tyrannyofheaven/bukkit/util/uuid/MojangUuidResolver.java @@ -29,9 +29,9 @@ import org.json.simple.parser.ParseException; import com.google.common.base.Charsets; -import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; +import com.google.common.cache.LoadingCache; import com.google.common.collect.Lists; public class MojangUuidResolver implements UuidResolver { @@ -40,7 +40,7 @@ public class MojangUuidResolver implements UuidResolver { private static final UuidDisplayName NULL_UDN = new UuidDisplayName(UUID.randomUUID(), "NOT FOUND"); - private final Cache cache; + private final LoadingCache cache; public MojangUuidResolver(int cacheMaxSize, long cacheTtl, TimeUnit cacheTtlUnits) { cache = CacheBuilder.newBuilder()