From e34afceb54f2abc603fbd06d558de852fa48e47b Mon Sep 17 00:00:00 2001 From: Fuzzlemann Date: Mon, 31 Jul 2017 17:37:52 +0200 Subject: [PATCH] Change asMap().get() to getIfPresent() --- .../java/com/djrapitops/plan/data/cache/PageCacheHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/data/cache/PageCacheHandler.java b/Plan/src/main/java/com/djrapitops/plan/data/cache/PageCacheHandler.java index a84dccae2..5a1aff43a 100644 --- a/Plan/src/main/java/com/djrapitops/plan/data/cache/PageCacheHandler.java +++ b/Plan/src/main/java/com/djrapitops/plan/data/cache/PageCacheHandler.java @@ -41,7 +41,7 @@ public class PageCacheHandler { * @return The Response that was cached or created by the {@link PageLoader loader} */ public static Response loadPage(String identifier, PageLoader loader) { - Response response = pageCache.asMap().get(identifier); + Response response = pageCache.getIfPresent(identifier); if (response != null) { return response;