Change asMap().get() to getIfPresent()

This commit is contained in:
Fuzzlemann 2017-07-31 17:37:52 +02:00
parent da7bf8f8ad
commit e34afceb54

View File

@ -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;