Polish "Use Java 8 forEach method on Map"
Closes gh-1404
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user