mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-09 20:31:38 +01:00
Change asMap().get() to getIfPresent()
This commit is contained in:
parent
da7bf8f8ad
commit
e34afceb54
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user