Skip to content

Commit 8eb8d3f

Browse files
committed
Merge branch '3.4.x'
See gh-44449
2 parents 96d91aa + cbf9cb0 commit 8eb8d3f

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

gradle/wrapper/gradle-wrapper.jar

122 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ fi
205205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206206

207207
# Collect all arguments for the java command:
208-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209209
# and any embedded shellness will be escaped.
210210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211211
# treated as '${Hostname}' itself on the command line.

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/annotation/ImportCandidates.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2025 the original author or authors.
2+
* Copyright 2012-2022 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.
@@ -29,7 +29,6 @@
2929

3030
import org.springframework.core.io.UrlResource;
3131
import org.springframework.util.Assert;
32-
import org.springframework.util.ClassUtils;
3332

3433
/**
3534
* Contains {@code @Configuration} import candidates, usually auto-configurations.
@@ -74,8 +73,7 @@ public List<String> getCandidates() {
7473
* Every line contains the full qualified name of the candidate class. Comments are
7574
* supported using the # character.
7675
* @param annotation annotation to load
77-
* @param classLoader class loader to use for loading, or {@code null} to use the
78-
* {@link ClassUtils#getDefaultClassLoader() default class loader}
76+
* @param classLoader class loader to use for loading
7977
* @return list of names of annotated classes
8078
*/
8179
public static ImportCandidates load(Class<?> annotation, ClassLoader classLoader) {
@@ -93,7 +91,7 @@ public static ImportCandidates load(Class<?> annotation, ClassLoader classLoader
9391

9492
private static ClassLoader decideClassloader(ClassLoader classLoader) {
9593
if (classLoader == null) {
96-
return ClassUtils.getDefaultClassLoader();
94+
return ImportCandidates.class.getClassLoader();
9795
}
9896
return classLoader;
9997
}

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/annotation/ImportCandidatesTests.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class ImportCandidatesTests {
4747
4848
""")
4949
void loadReadsFromClasspathFile() {
50-
ImportCandidates candidates = ImportCandidates.load(TestAnnotation.class, null);
50+
ImportCandidates candidates = ImportCandidates.load(TestAnnotation.class,
51+
Thread.currentThread().getContextClassLoader());
5152
assertThat(candidates).containsExactly("class1", "class2", "class3");
5253
}
5354

0 commit comments

Comments
 (0)