Skip to content

Commit a8c558a

Browse files
committed
Fix build after Spring Framework deprecation
See spring-projects/spring-framework#28905
1 parent 09c753d commit a8c558a

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootContextLoader.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,6 @@ protected Class<?>[] detectDefaultConfigurationClasses(Class<?> declaringClass)
244244
return AnnotationConfigContextLoaderUtils.detectDefaultConfigurationClasses(declaringClass);
245245
}
246246

247-
@Override
248-
public ApplicationContext loadContext(String... locations) throws Exception {
249-
throw new UnsupportedOperationException(
250-
"SpringApplicationContextLoader does not support the loadContext(String...) method");
251-
}
252-
253247
@Override
254248
protected String[] getResourceSuffixes() {
255249
return new String[] { "-context.xml", "Context.groovy" };

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/support/ErrorPageFilterIntegrationTests.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,6 @@ public ApplicationContext loadContext(MergedContextConfiguration config) {
186186
return context;
187187
}
188188

189-
@Override
190-
public ApplicationContext loadContext(String... locations) {
191-
throw new UnsupportedOperationException();
192-
}
193-
194189
@Override
195190
protected String[] getResourceSuffixes() {
196191
return EMPTY_RESOURCE_SUFFIXES;

0 commit comments

Comments
 (0)