diff --git a/Plan/src/main/java/com/djrapitops/plan/data/cache/InspectCacheHandler.java b/Plan/src/main/java/com/djrapitops/plan/data/cache/InspectCacheHandler.java index a8fb5162b..e475ae549 100644 --- a/Plan/src/main/java/com/djrapitops/plan/data/cache/InspectCacheHandler.java +++ b/Plan/src/main/java/com/djrapitops/plan/data/cache/InspectCacheHandler.java @@ -44,17 +44,14 @@ public class InspectCacheHandler { * @param uuid UUID of the player. */ public void cache(UUID uuid) { - DBCallableProcessor cacher = new DBCallableProcessor() { - @Override - public void process(UserData data) { - cache.put(uuid, new UserData(data)); - cacheTimes.put(uuid, MiscUtils.getTime()); - PageCacheHandler.cachePage("inspectPage: " + uuid.toString(), () -> new InspectPageResponse(Plan.getInstance().getUiServer().getDataReqHandler(), uuid)); - try { - ExportUtility.writeInspectHtml(data, ExportUtility.getPlayersFolder(ExportUtility.getFolder())); - } catch (IOException ex) { - Log.toLog(this.getClass().getName(), ex); - } + DBCallableProcessor cacher = data -> { + cache.put(uuid, new UserData(data)); + cacheTimes.put(uuid, MiscUtils.getTime()); + PageCacheHandler.cachePage("inspectPage: " + uuid.toString(), () -> new InspectPageResponse(Plan.getInstance().getUiServer().getDataReqHandler(), uuid)); + try { + ExportUtility.writeInspectHtml(data, ExportUtility.getPlayersFolder(ExportUtility.getFolder())); + } catch (IOException ex) { + Log.toLog(this.getClass().getName(), ex); } };