mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-12 15:56:00 +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}
|
* @return The Response that was cached or created by the {@link PageLoader loader}
|
||||||
*/
|
*/
|
||||||
public static Response loadPage(String identifier, PageLoader loader) {
|
public static Response loadPage(String identifier, PageLoader loader) {
|
||||||
Response response = pageCache.asMap().get(identifier);
|
Response response = pageCache.getIfPresent(identifier);
|
||||||
|
|
||||||
if (response != null) {
|
if (response != null) {
|
||||||
return response;
|
return response;
|
||||||
|
Loading…
Reference in New Issue
Block a user