Polish "Refact iterator of Map with Java 8 forEach"
Closes gh-1451
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -351,7 +351,8 @@ class ConfigurationClassBeanDefinitionReader {
|
||||
}
|
||||
|
||||
private void loadBeanDefinitionsFromRegistrars(Map<ImportBeanDefinitionRegistrar, AnnotationMetadata> registrars) {
|
||||
registrars.forEach((registrar, metadata) -> registrar.registerBeanDefinitions(metadata, this.registry));
|
||||
registrars.forEach((registrar, metadata) ->
|
||||
registrar.registerBeanDefinitions(metadata, this.registry));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -544,7 +544,8 @@ public class MBeanExporter extends MBeanRegistrationSupport implements MBeanExpo
|
||||
}
|
||||
|
||||
if (!this.beans.isEmpty()) {
|
||||
this.beans.forEach((beanName, instance) -> registerBeanNameOrInstance(instance, beanName));
|
||||
this.beans.forEach((beanName, instance) ->
|
||||
registerBeanNameOrInstance(instance, beanName));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -53,10 +53,8 @@ public abstract class AbstractConfigurableMBeanInfoAssembler extends AbstractRef
|
||||
}
|
||||
|
||||
public void setNotificationInfoMappings(Map<String, Object> notificationInfoMappings) {
|
||||
notificationInfoMappings.forEach(
|
||||
(beanKey, result)
|
||||
-> this.notificationInfoMappings.put(beanKey, extractNotificationMetadata(result))
|
||||
);
|
||||
notificationInfoMappings.forEach((beanKey, result) ->
|
||||
this.notificationInfoMappings.put(beanKey, extractNotificationMetadata(result)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -315,11 +315,8 @@ public class ScheduledAnnotationBeanPostProcessor
|
||||
}
|
||||
else {
|
||||
// Non-empty set of methods
|
||||
annotatedMethods.forEach((method, scheduleds) -> {
|
||||
for (Scheduled scheduled : scheduleds) {
|
||||
processScheduled(scheduled, method, bean);
|
||||
}
|
||||
});
|
||||
annotatedMethods.forEach((method, scheduledMethods) ->
|
||||
scheduledMethods.forEach(scheduled -> processScheduled(scheduled, method, bean)));
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug(annotatedMethods.size() + " @Scheduled methods processed on bean '" + beanName +
|
||||
"': " + annotatedMethods);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-201 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
Reference in New Issue
Block a user