Skip to content

Commit 9dc5c9f

Browse files
committed
Merge branch '5.3.x'
# Conflicts: # build.gradle
2 parents e15bed7 + 31a4c27 commit 9dc5c9f

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ configure(allprojects) { project ->
8484
exclude group: "stax", name: "stax-api"
8585
}
8686
dependency "org.ogce:xpp3:1.1.6"
87-
dependency "org.yaml:snakeyaml:1.29"
87+
dependency "org.yaml:snakeyaml:1.30"
8888

8989
dependency "com.h2database:h2:1.4.200"
9090
dependency "com.github.ben-manes.caffeine:caffeine:3.0.5"
@@ -183,7 +183,7 @@ configure(allprojects) { project ->
183183
}
184184
entry 'mockito-junit-jupiter'
185185
}
186-
dependency "io.mockk:mockk:1.12.0"
186+
dependency "io.mockk:mockk:1.12.1"
187187

188188
dependency("net.sourceforge.htmlunit:htmlunit:2.55.0") {
189189
exclude group: "commons-logging", name: "commons-logging"

spring-context/src/main/java/org/springframework/cache/annotation/AbstractCachingConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public abstract class AbstractCachingConfiguration implements ImportAware {
6767
@Override
6868
public void setImportMetadata(AnnotationMetadata importMetadata) {
6969
this.enableCaching = AnnotationAttributes.fromMap(
70-
importMetadata.getAnnotationAttributes(EnableCaching.class.getName(), false));
70+
importMetadata.getAnnotationAttributes(EnableCaching.class.getName()));
7171
if (this.enableCaching == null) {
7272
throw new IllegalArgumentException(
7373
"@EnableCaching is not present on importing class " + importMetadata.getClassName());
@@ -76,7 +76,7 @@ public void setImportMetadata(AnnotationMetadata importMetadata) {
7676

7777
@Autowired
7878
void setConfigurers(ObjectProvider<CachingConfigurer> configurers) {
79-
Supplier<CachingConfigurer> cachingConfigurer = () -> {
79+
Supplier<CachingConfigurer> configurer = () -> {
8080
List<CachingConfigurer> candidates = configurers.stream().collect(Collectors.toList());
8181
if (CollectionUtils.isEmpty(candidates)) {
8282
return null;
@@ -89,7 +89,7 @@ void setConfigurers(ObjectProvider<CachingConfigurer> configurers) {
8989
}
9090
return candidates.get(0);
9191
};
92-
useCachingConfigurer(new CachingConfigurerSupplier(cachingConfigurer));
92+
useCachingConfigurer(new CachingConfigurerSupplier(configurer));
9393
}
9494

9595
/**

spring-context/src/main/java/org/springframework/context/annotation/AnnotationConfigUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ static AnnotationAttributes attributesFor(AnnotatedTypeMetadata metadata, Class<
298298

299299
@Nullable
300300
static AnnotationAttributes attributesFor(AnnotatedTypeMetadata metadata, String annotationClassName) {
301-
return AnnotationAttributes.fromMap(metadata.getAnnotationAttributes(annotationClassName, false));
301+
return AnnotationAttributes.fromMap(metadata.getAnnotationAttributes(annotationClassName));
302302
}
303303

304304
static Set<AnnotationAttributes> attributesForRepeatable(AnnotationMetadata metadata,
@@ -314,10 +314,10 @@ static Set<AnnotationAttributes> attributesForRepeatable(
314314
Set<AnnotationAttributes> result = new LinkedHashSet<>();
315315

316316
// Direct annotation present?
317-
addAttributesIfNotNull(result, metadata.getAnnotationAttributes(annotationClassName, false));
317+
addAttributesIfNotNull(result, metadata.getAnnotationAttributes(annotationClassName));
318318

319319
// Container annotation present?
320-
Map<String, Object> container = metadata.getAnnotationAttributes(containerClassName, false);
320+
Map<String, Object> container = metadata.getAnnotationAttributes(containerClassName);
321321
if (container != null && container.containsKey("value")) {
322322
for (Map<String, Object> containedAttributes : (Map<String, Object>[]) container.get("value")) {
323323
addAttributesIfNotNull(result, containedAttributes);

spring-context/src/main/java/org/springframework/scheduling/annotation/AbstractAsyncConfiguration.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public abstract class AbstractAsyncConfiguration implements ImportAware {
5959
@Override
6060
public void setImportMetadata(AnnotationMetadata importMetadata) {
6161
this.enableAsync = AnnotationAttributes.fromMap(
62-
importMetadata.getAnnotationAttributes(EnableAsync.class.getName(), false));
62+
importMetadata.getAnnotationAttributes(EnableAsync.class.getName()));
6363
if (this.enableAsync == null) {
6464
throw new IllegalArgumentException(
6565
"@EnableAsync is not present on importing class " + importMetadata.getClassName());
@@ -71,7 +71,7 @@ public void setImportMetadata(AnnotationMetadata importMetadata) {
7171
*/
7272
@Autowired
7373
void setConfigurers(ObjectProvider<AsyncConfigurer> configurers) {
74-
Supplier<AsyncConfigurer> asyncConfigurer = SingletonSupplier.of(() -> {
74+
Supplier<AsyncConfigurer> configurer = SingletonSupplier.of(() -> {
7575
List<AsyncConfigurer> candidates = configurers.stream().collect(Collectors.toList());
7676
if (CollectionUtils.isEmpty(candidates)) {
7777
return null;
@@ -81,14 +81,14 @@ void setConfigurers(ObjectProvider<AsyncConfigurer> configurers) {
8181
}
8282
return candidates.get(0);
8383
});
84-
this.executor = adapt(asyncConfigurer, AsyncConfigurer::getAsyncExecutor);
85-
this.exceptionHandler = adapt(asyncConfigurer, AsyncConfigurer::getAsyncUncaughtExceptionHandler);
84+
this.executor = adapt(configurer, AsyncConfigurer::getAsyncExecutor);
85+
this.exceptionHandler = adapt(configurer, AsyncConfigurer::getAsyncUncaughtExceptionHandler);
8686
}
8787

8888
private <T> Supplier<T> adapt(Supplier<AsyncConfigurer> supplier, Function<AsyncConfigurer, T> provider) {
8989
return () -> {
90-
AsyncConfigurer asyncConfigurer = supplier.get();
91-
return (asyncConfigurer != null) ? provider.apply(asyncConfigurer) : null;
90+
AsyncConfigurer configurer = supplier.get();
91+
return (configurer != null ? provider.apply(configurer) : null);
9292
};
9393
}
9494

spring-tx/src/main/java/org/springframework/transaction/annotation/AbstractTransactionManagementConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@ public abstract class AbstractTransactionManagementConfiguration implements Impo
5757
@Override
5858
public void setImportMetadata(AnnotationMetadata importMetadata) {
5959
this.enableTx = AnnotationAttributes.fromMap(
60-
importMetadata.getAnnotationAttributes(EnableTransactionManagement.class.getName(), false));
60+
importMetadata.getAnnotationAttributes(EnableTransactionManagement.class.getName()));
6161
if (this.enableTx == null) {
6262
throw new IllegalArgumentException(
6363
"@EnableTransactionManagement is not present on importing class " + importMetadata.getClassName());

0 commit comments

Comments
 (0)