Skip to content

Commit 1a50732

Browse files
committed
Attempt to fix failing CI builds
1 parent 1c82ba4 commit 1a50732

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public abstract class TestContextAnnotationUtils {
7575
private static final ConcurrentLruCache<Class<?>, EnclosingConfiguration> cachedEnclosingConfigurationModes =
7676
new ConcurrentLruCache<>(32, TestContextAnnotationUtils::lookUpEnclosingConfiguration);
7777

78-
private static EnclosingConfiguration defaultEnclosingConfigurationMode;
78+
private static volatile EnclosingConfiguration defaultEnclosingConfigurationMode;
7979

8080
/**
8181
* Find the first annotation of the specified {@code annotationType} within

spring-test/src/test/java/org/springframework/test/context/TestContextAnnotationUtilsTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class TestContextAnnotationUtilsTests {
5757
class SearchEnclosingClassTests {
5858

5959
@BeforeEach
60+
@AfterEach
6061
void clearCaches() {
6162
TestContextAnnotationUtils.clearCaches();
6263
}

0 commit comments

Comments
 (0)