Skip to content

Commit ac74de9

Browse files
committed
Polishing
1 parent 7a8fc0e commit ac74de9

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 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.
@@ -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.
@@ -80,8 +80,8 @@ public interface WebRequest extends RequestAttributes {
8080

8181
/**
8282
* Return a Iterator over request parameter names.
83-
* @see javax.servlet.http.HttpServletRequest#getParameterNames()
8483
* @since 3.0
84+
* @see javax.servlet.http.HttpServletRequest#getParameterNames()
8585
*/
8686
Iterator<String> getParameterNames();
8787

@@ -140,7 +140,7 @@ public interface WebRequest extends RequestAttributes {
140140
* and HTTP status when applicable.
141141
* <p>Typical usage:
142142
* <pre class="code">
143-
* public String myHandleMethod(WebRequest webRequest, Model model) {
143+
* public String myHandleMethod(WebRequest request, Model model) {
144144
* long lastModified = // application-specific calculation
145145
* if (request.checkNotModified(lastModified)) {
146146
* // shortcut exit - no further processing necessary
@@ -177,7 +177,7 @@ public interface WebRequest extends RequestAttributes {
177177
* and HTTP status when applicable.
178178
* <p>Typical usage:
179179
* <pre class="code">
180-
* public String myHandleMethod(WebRequest webRequest, Model model) {
180+
* public String myHandleMethod(WebRequest request, Model model) {
181181
* String eTag = // application-specific calculation
182182
* if (request.checkNotModified(eTag)) {
183183
* // shortcut exit - no further processing necessary
@@ -208,7 +208,7 @@ public interface WebRequest extends RequestAttributes {
208208
* response headers, and HTTP status when applicable.
209209
* <p>Typical usage:
210210
* <pre class="code">
211-
* public String myHandleMethod(WebRequest webRequest, Model model) {
211+
* public String myHandleMethod(WebRequest request, Model model) {
212212
* String eTag = // application-specific calculation
213213
* long lastModified = // application-specific calculation
214214
* if (request.checkNotModified(eTag, lastModified)) {

src/docs/asciidoc/web/webmvc.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3837,7 +3837,7 @@ The check against conditional request headers can also be made in the controller
38373837
[subs="verbatim,quotes"]
38383838
----
38393839
@RequestMapping
3840-
public String myHandleMethod(WebRequest webRequest, Model model) {
3840+
public String myHandleMethod(WebRequest request, Model model) {
38413841
38423842
long eTag = ... <1>
38433843

0 commit comments

Comments
 (0)