Polish "Use Java 8 forEach method on Map"

Closes gh-1404
This commit is contained in:
Stephane Nicoll
2017-04-28 10:53:23 +02:00
parent 13dc0cd828
commit 1b9e12f52f
7 changed files with 18 additions and 24 deletions

View File

@@ -192,10 +192,8 @@ public abstract class AbstractHandlerMethodMapping<T> extends AbstractHandlerMap
if (logger.isDebugEnabled()) {
logger.debug(methods.size() + " request handler methods found on " + userType + ": " + methods);
}
methods.entrySet().forEach(entry -> {
Method invocableMethod = AopUtils.selectInvocableMethod(entry.getKey(), userType);
T mapping = entry.getValue();
methods.forEach((key, mapping) -> {
Method invocableMethod = AopUtils.selectInvocableMethod(key, userType);
registerHandlerMethod(handler, invocableMethod, mapping);
});
}