Skip to content

Commit 21a0bc7

Browse files
Merge branch '3.1.x' into 3.2.x
Closes gh-40576
2 parents 34e62bb + 50cab2d commit 21a0bc7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/task/ScheduledBeanLazyInitializationExcludeFilter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2024 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.
@@ -18,7 +18,6 @@
1818

1919
import java.lang.reflect.Method;
2020
import java.util.Arrays;
21-
import java.util.Collections;
2221
import java.util.Map;
2322
import java.util.Set;
2423
import java.util.concurrent.ConcurrentHashMap;
@@ -43,7 +42,7 @@
4342
*/
4443
class ScheduledBeanLazyInitializationExcludeFilter implements LazyInitializationExcludeFilter {
4544

46-
private final Set<Class<?>> nonAnnotatedClasses = Collections.newSetFromMap(new ConcurrentHashMap<>(64));
45+
private final Set<Class<?>> nonAnnotatedClasses = ConcurrentHashMap.newKeySet(64);
4746

4847
ScheduledBeanLazyInitializationExcludeFilter() {
4948
// Ignore AOP infrastructure such as scoped proxies.

spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar/JarUrlClassLoader.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2024 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.
@@ -22,7 +22,6 @@
2222
import java.net.URLClassLoader;
2323
import java.net.URLConnection;
2424
import java.util.Arrays;
25-
import java.util.Collections;
2625
import java.util.Enumeration;
2726
import java.util.Map;
2827
import java.util.Set;
@@ -47,7 +46,7 @@ public abstract class JarUrlClassLoader extends URLClassLoader {
4746

4847
private final Map<URL, JarFile> jarFiles = new ConcurrentHashMap<>();
4948

50-
private final Set<String> undefinablePackages = Collections.newSetFromMap(new ConcurrentHashMap<>());
49+
private final Set<String> undefinablePackages = ConcurrentHashMap.newKeySet();
5150

5251
/**
5352
* Create a new {@link LaunchedClassLoader} instance.

0 commit comments

Comments
 (0)