Skip to content

Commit b0ab0ed

Browse files
committed
Polishing
1 parent 42b3339 commit b0ab0ed

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ public boolean isAlias(String beanName) {
388388
* Load or refresh the persistent representation of the configuration up to
389389
* a point where the underlying bean factory is ready to create bean
390390
* instances.
391-
* <p>This variant of {@link #refresh()} is used by Ahead of Time processing
392-
* that optimizes the application context, typically at build-time.
391+
* <p>This variant of {@link #refresh()} is used by Ahead of Time (AOT)
392+
* processing that optimizes the application context, typically at build time.
393393
* <p>In this mode, only {@link BeanDefinitionRegistryPostProcessor} and
394394
* {@link MergedBeanDefinitionPostProcessor} are invoked.
395395
* @throws BeansException if the bean factory could not be initialized

spring-test/src/main/java/org/springframework/test/context/support/AbstractContextLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ protected String[] getResourceSuffixes() {
321321
* Get the suffix to append to {@link ApplicationContext} resource locations
322322
* when detecting default locations.
323323
* <p>Subclasses must provide an implementation of this method that returns
324-
* a single suffix. Alternatively subclasses may provide a <em>no-op</em>
324+
* a single suffix. Alternatively subclasses may provide a <em>no-op</em>
325325
* implementation of this method and override {@link #getResourceSuffixes()}
326326
* in order to provide multiple custom suffixes.
327327
* @return the resource suffix; never {@code null} or empty

spring-test/src/test/java/org/springframework/test/context/support/DelegatingSmartContextLoaderTests.java

Lines changed: 3 additions & 3 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-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.
@@ -167,7 +167,7 @@ void processLocations() {
167167
}
168168

169169
@Test
170-
void loadContextFromLocations() throws Exception {
170+
void loadContextFromLocations() {
171171
assertThatExceptionOfType(UnsupportedOperationException.class).isThrownBy(() ->
172172
loader.loadContext(EMPTY_STRING_ARRAY));
173173
}
@@ -180,7 +180,7 @@ static class XmlTestCase {
180180

181181
static class ConfigClassTestCase {
182182

183-
@Configuration
183+
@Configuration(proxyBeanMethods = false)
184184
static class Config {
185185

186186
@Bean

0 commit comments

Comments
 (0)