Remove unused code

Closes gh-2244
This commit is contained in:
Stephane Nicoll 2014-12-28 10:51:53 +01:00
parent 05e402295d
commit 38594cd820
1 changed files with 0 additions and 4 deletions

View File

@ -18,7 +18,6 @@ package org.springframework.boot.actuate.endpoint;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@ -84,11 +83,8 @@ public class RequestMappingEndpoint extends AbstractEndpoint<Map<String, Object>
protected void extractMethodMappings(ApplicationContext applicationContext,
Map<String, Object> result) {
if (applicationContext != null) {
Map<String, AbstractHandlerMethodMapping<?>> mappings = new HashMap<String, AbstractHandlerMethodMapping<?>>();
for (String name : applicationContext.getBeansOfType(
AbstractHandlerMethodMapping.class).keySet()) {
mappings.put(name, applicationContext.getBean(name,
AbstractHandlerMethodMapping.class));
@SuppressWarnings("unchecked")
Map<?, HandlerMethod> methods = applicationContext.getBean(name,
AbstractHandlerMethodMapping.class).getHandlerMethods();