Skip to content

Commit b5887bf

Browse files
committed
Polishing
1 parent 299e2c8 commit b5887bf

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

spring-aspects/src/main/java/org/springframework/beans/factory/aspectj/AbstractInterfaceDrivenDependencyInjectionAspect.aj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -67,6 +67,7 @@ import java.io.Serializable;
6767
* @since 2.5.2
6868
*/
6969
public abstract aspect AbstractInterfaceDrivenDependencyInjectionAspect extends AbstractDependencyInjectionAspect {
70+
7071
/**
7172
* Select initialization join point as object construction
7273
*/

spring-aspects/src/main/java/org/springframework/beans/factory/aspectj/AnnotationBeanConfigurerAspect.aj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -32,8 +32,8 @@ import org.springframework.beans.factory.wiring.BeanConfigurerSupport;
3232
* Concrete aspect that uses the {@link Configurable} annotation to identify
3333
* which classes need autowiring.
3434
*
35-
* <p>The bean name to look up will be taken from the {@code &#64;Configurable}
36-
* annotation if specified, otherwise the default bean name to look up will be
35+
* <p>The bean name to look up will be taken from the {@code @Configurable}
36+
* annotation if specified; otherwise, the default bean name to look up will be
3737
* the fully qualified name of the class being configured.
3838
*
3939
* @author Rod Johnson
@@ -47,22 +47,26 @@ import org.springframework.beans.factory.wiring.BeanConfigurerSupport;
4747
public aspect AnnotationBeanConfigurerAspect extends AbstractInterfaceDrivenDependencyInjectionAspect
4848
implements BeanFactoryAware, InitializingBean, DisposableBean {
4949

50-
private BeanConfigurerSupport beanConfigurerSupport = new BeanConfigurerSupport();
50+
private final BeanConfigurerSupport beanConfigurerSupport = new BeanConfigurerSupport();
5151

5252

53+
@Override
5354
public void setBeanFactory(BeanFactory beanFactory) {
5455
this.beanConfigurerSupport.setBeanWiringInfoResolver(new AnnotationBeanWiringInfoResolver());
5556
this.beanConfigurerSupport.setBeanFactory(beanFactory);
5657
}
5758

59+
@Override
5860
public void afterPropertiesSet() {
5961
this.beanConfigurerSupport.afterPropertiesSet();
6062
}
6163

64+
@Override
6265
public void configureBean(Object bean) {
6366
this.beanConfigurerSupport.configureBean(bean);
6467
}
6568

69+
@Override
6670
public void destroy() {
6771
this.beanConfigurerSupport.destroy();
6872
}

spring-web/src/main/java/org/springframework/web/context/request/WebRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -74,8 +74,8 @@ public interface WebRequest extends RequestAttributes {
7474

7575
/**
7676
* Return a Iterator over request parameter names.
77-
* @see javax.servlet.http.HttpServletRequest#getParameterNames()
7877
* @since 3.0
78+
* @see javax.servlet.http.HttpServletRequest#getParameterNames()
7979
*/
8080
Iterator<String> getParameterNames();
8181

@@ -132,7 +132,7 @@ public interface WebRequest extends RequestAttributes {
132132
* and HTTP status when applicable.
133133
* <p>Typical usage:
134134
* <pre class="code">
135-
* public String myHandleMethod(WebRequest webRequest, Model model) {
135+
* public String myHandleMethod(WebRequest request, Model model) {
136136
* long lastModified = // application-specific calculation
137137
* if (request.checkNotModified(lastModified)) {
138138
* // shortcut exit - no further processing necessary
@@ -169,7 +169,7 @@ public interface WebRequest extends RequestAttributes {
169169
* and HTTP status when applicable.
170170
* <p>Typical usage:
171171
* <pre class="code">
172-
* public String myHandleMethod(WebRequest webRequest, Model model) {
172+
* public String myHandleMethod(WebRequest request, Model model) {
173173
* String eTag = // application-specific calculation
174174
* if (request.checkNotModified(eTag)) {
175175
* // shortcut exit - no further processing necessary
@@ -200,7 +200,7 @@ public interface WebRequest extends RequestAttributes {
200200
* response headers, and HTTP status when applicable.
201201
* <p>Typical usage:
202202
* <pre class="code">
203-
* public String myHandleMethod(WebRequest webRequest, Model model) {
203+
* public String myHandleMethod(WebRequest request, Model model) {
204204
* String eTag = // application-specific calculation
205205
* long lastModified = // application-specific calculation
206206
* if (request.checkNotModified(eTag, lastModified)) {

src/asciidoc/web-mvc.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4588,7 +4588,7 @@ This can be achieved as follows:
45884588
[subs="verbatim,quotes"]
45894589
----
45904590
@RequestMapping
4591-
public String myHandleMethod(WebRequest webRequest, Model model) {
4591+
public String myHandleMethod(WebRequest request, Model model) {
45924592
45934593
long lastModified = // 1. application-specific calculation
45944594

0 commit comments

Comments
 (0)