mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08: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