Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Update to 1.8 / fix compilation with Guava 17 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bukkit.version>1.7.10-R0.1-SNAPSHOT</bukkit.version>
<bukkit.version>1.8-R0.1-SNAPSHOT</bukkit.version>
</properties>
<repositories>
<repository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -40,7 +40,7 @@ public class MojangUuidResolver implements UuidResolver {

private static final UuidDisplayName NULL_UDN = new UuidDisplayName(UUID.randomUUID(), "NOT FOUND");

private final Cache<String, UuidDisplayName> cache;
private final LoadingCache<String, UuidDisplayName> cache;

public MojangUuidResolver(int cacheMaxSize, long cacheTtl, TimeUnit cacheTtlUnits) {
cache = CacheBuilder.newBuilder()
Expand Down