Skip to content

Commit c2c3be4

Browse files
committed
Polishing
1 parent 270f852 commit c2c3be4

File tree

11 files changed

+26
-26
lines changed

11 files changed

+26
-26
lines changed

framework-docs/src/docs/asciidoc/core/core-aop-api.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Spring's pointcut model enables pointcut reuse independent of advice types. You
2323
target different advice with the same pointcut.
2424

2525
The `org.springframework.aop.Pointcut` interface is the central interface, used to
26-
target advices to particular classes and methods. The complete interface follows:
26+
target advice to particular classes and methods. The complete interface follows:
2727

2828
[source,java,indent=0,subs="verbatim,quotes"]
2929
----
@@ -843,7 +843,7 @@ created by the implementation of the `getObject()` method in the `ProxyFactoryBe
843843
method creates an AOP proxy that wraps a target object.
844844

845845
One of the most important benefits of using a `ProxyFactoryBean` or another IoC-aware
846-
class to create AOP proxies is that advices and pointcuts can also be
846+
class to create AOP proxies is that advice and pointcuts can also be
847847
managed by IoC. This is a powerful feature, enabling certain approaches that are hard to
848848
achieve with other AOP frameworks. For example, an advice may itself reference
849849
application objects (besides the target, which should be available in any AOP
@@ -901,7 +901,7 @@ to be applied. You can find an example of using this feature in <<aop-global-adv
901901
* singleton: Whether or not the factory should return a single object, no matter how
902902
often the `getObject()` method is called. Several `FactoryBean` implementations offer
903903
such a method. The default value is `true`. If you want to use stateful advice - for
904-
example, for stateful mixins - use prototype advices along with a singleton value of
904+
example, for stateful mixins - use prototype advice along with a singleton value of
905905
`false`.
906906

907907

@@ -965,7 +965,7 @@ Consider a simple example of `ProxyFactoryBean` in action. This example involves
965965
the example.
966966
* An `Advisor` and an `Interceptor` used to provide advice.
967967
* An AOP proxy bean definition to specify the target object (the `personTarget` bean),
968-
the interfaces to proxy, and the advices to apply.
968+
the interfaces to proxy, and the advice to apply.
969969

970970
The following listing shows the example:
971971

@@ -1239,7 +1239,7 @@ The first step is to construct an object of type
12391239
object, as in the preceding example, or specify the interfaces to be proxied in an alternate
12401240
constructor.
12411241

1242-
You can add advices (with interceptors as a specialized kind of advice), advisors, or both
1242+
You can add advice (with interceptors as a specialized kind of advice), advisors, or both
12431243
and manipulate them for the life of the `ProxyFactory`. If you add an
12441244
`IntroductionInterceptionAroundAdvisor`, you can cause the proxy to implement additional
12451245
interfaces.
@@ -1468,7 +1468,7 @@ Using this mechanism involves:
14681468

14691469
* Specifying a `DefaultAdvisorAutoProxyCreator` bean definition.
14701470
* Specifying any number of advisors in the same or related contexts. Note that these
1471-
must be advisors, not interceptors or other advices. This is necessary,
1471+
must be advisors, not interceptors or other advice. This is necessary,
14721472
because there must be a pointcut to evaluate, to check the eligibility of each advice
14731473
to candidate bean definitions.
14741474

@@ -1731,7 +1731,7 @@ of target source, as the following example shows:
17311731

17321732
NOTE: `ThreadLocal` instances come with serious issues (potentially resulting in memory leaks) when
17331733
incorrectly using them in multi-threaded and multi-classloader environments. You
1734-
should always consider wrapping a threadlocal in some other class and never directly use
1734+
should always consider wrapping a `ThreadLocal` in some other class and never directly use
17351735
the `ThreadLocal` itself (except in the wrapper class). Also, you should
17361736
always remember to correctly set and unset (where the latter simply involves a call to
17371737
`ThreadLocal.set(null)`) the resource local to the thread. Unsetting should be done in

framework-docs/src/docs/asciidoc/core/core-aop.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4149,7 +4149,7 @@ The following example specifies a `ReflectiveLoadTimeWeaver`:
41494149
}
41504150
----
41514151

4152-
If you use XML-based configuration, you can specify the fully qualified classname
4152+
If you use XML-based configuration, you can specify the fully qualified class name
41534153
as the value of the `weaver-class` attribute on the `<context:load-time-weaver/>`
41544154
element. Again, the following example specifies a `ReflectiveLoadTimeWeaver`:
41554155

framework-docs/src/docs/asciidoc/core/core-appendix.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ The following listing shows the `Component` class:
10691069
private String name;
10701070
private List<Component> components = new ArrayList<Component> ();
10711071
1072-
// mmm, there is no setter method for the 'components'
1072+
// there is no setter method for the 'components'
10731073
public void addComponent(Component component) {
10741074
this.components.add(component);
10751075
}
@@ -1099,7 +1099,7 @@ The following listing shows the `Component` class:
10991099
var name: String? = null
11001100
private val components = ArrayList<Component>()
11011101
1102-
// mmm, there is no setter method for the 'components'
1102+
// there is no setter method for the 'components'
11031103
fun addComponent(component: Component) {
11041104
this.components.add(component)
11051105
}

framework-docs/src/docs/asciidoc/core/core-beans.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ creating a namespace), yet they refer to the same bean.
605605

606606
.Java-configuration
607607
****
608-
If you use Javaconfiguration, the `@Bean` annotation can be used to provide aliases.
608+
If you use Java Configuration, the `@Bean` annotation can be used to provide aliases.
609609
See <<beans-java-bean-annotation>> for details.
610610
****
611611

@@ -3981,7 +3981,7 @@ dependency type. The following table summarizes the most important `Aware` inter
39813981
| <<aop-aj-ltw>>
39823982

39833983
| `MessageSourceAware`
3984-
| Configured strategy for resolving messages (with support for parametrization and
3984+
| Configured strategy for resolving messages (with support for parameterization and
39853985
internationalization).
39863986
| <<context-introduction>>
39873987

@@ -5020,7 +5020,7 @@ through Java 8's `java.util.Optional`, as the following example shows:
50205020

50215021
As of Spring Framework 5.0, you can also use a `@Nullable` annotation (of any kind
50225022
in any package -- for example, `javax.annotation.Nullable` from JSR-305) or just leverage
5023-
Kotlin builtin null-safety support:
5023+
Kotlin built-in null-safety support:
50245024

50255025
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
50265026
.Java
@@ -6324,7 +6324,7 @@ the `@RestController` annotation from Spring MVC is composed of `@Controller` an
63246324
In addition, composed annotations can optionally redeclare attributes from
63256325
meta-annotations to allow customization. This can be particularly useful when you
63266326
want to only expose a subset of the meta-annotation's attributes. For example, Spring's
6327-
`@SessionScope` annotation hardcodes the scope name to `session` but still allows
6327+
`@SessionScope` annotation hard codes the scope name to `session` but still allows
63286328
customization of the `proxyMode`. The following listing shows the definition of the
63296329
`SessionScope` annotation:
63306330

framework-docs/src/docs/asciidoc/data-access.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4188,7 +4188,7 @@ To configure a `DriverManagerDataSource`:
41884188

41894189
. Obtain a connection with `DriverManagerDataSource` as you typically obtain a JDBC
41904190
connection.
4191-
. Specify the fully qualified classname of the JDBC driver so that the `DriverManager`
4191+
. Specify the fully qualified class name of the JDBC driver so that the `DriverManager`
41924192
can load the driver class.
41934193
. Provide a URL that varies between JDBC drivers. (See the documentation for your driver
41944194
for the correct value.)
@@ -4346,7 +4346,7 @@ javadoc for more details.
43464346
==== Using `DataSourceTransactionManager`
43474347

43484348
The `DataSourceTransactionManager` class is a `PlatformTransactionManager`
4349-
implementation for single JDBC datasources. It binds a JDBC connection from the
4349+
implementation for single JDBC data sources. It binds a JDBC connection from the
43504350
specified data source to the currently executing thread, potentially allowing for one
43514351
thread connection per data source.
43524352

@@ -6966,7 +6966,7 @@ Consider the following query:
69666966
SELECT id, name, state FROM table WHERE (name, age) IN (('John', 35), ('Ann', 50))
69676967
----
69686968

6969-
The preceding query can be parametrized and run as follows:
6969+
The preceding query can be parameterized and run as follows:
69706970

69716971
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
69726972
.Java
@@ -7286,7 +7286,7 @@ javadoc for more details.
72867286
==== Using `R2dbcTransactionManager`
72877287

72887288
The `R2dbcTransactionManager` class is a `ReactiveTransactionManager` implementation for
7289-
single R2DBC datasources. It binds an R2DBC connection from the specified connection factory
7289+
single R2DBC data sources. It binds an R2DBC connection from the specified connection factory
72907290
to the subscriber `Context`, potentially allowing for one subscriber connection for each
72917291
connection factory.
72927292

framework-docs/src/docs/asciidoc/integration/cache.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ Since caches are essentially key-value stores, each invocation of a cached metho
140140
needs to be translated into a suitable key for cache access. The caching abstraction
141141
uses a simple `KeyGenerator` based on the following algorithm:
142142

143-
* If no params are given, return `SimpleKey.EMPTY`.
144-
* If only one param is given, return that instance.
145-
* If more than one param is given, return a `SimpleKey` that contains all parameters.
143+
* If no parameters are given, return `SimpleKey.EMPTY`.
144+
* If only one parameter is given, return that instance.
145+
* If more than one parameter is given, return a `SimpleKey` that contains all parameters.
146146

147147
This approach works well for most use-cases, as long as parameters have natural keys
148148
and implement valid `hashCode()` and `equals()` methods. If that is not the case,

framework-docs/src/docs/asciidoc/testing/spring-mvc-test-framework.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ leads to a number of additional challenges:
961961
* Testing can become slow, since each test would need to ensure that the database is in
962962
the correct state.
963963
* Since our database needs to be in a specific state, we cannot run tests in parallel.
964-
* Performing assertions on such items as auto-generated ids, timestamps, and others can
964+
* Performing assertions on such items as auto-generated IDs, timestamps, and others can
965965
be difficult.
966966

967967
These challenges do not mean that we should abandon end-to-end integration testing

framework-docs/src/docs/asciidoc/web/webflux-webclient.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ response individually, and instead wait for the combined result:
11961196

11971197
The above is merely one example. There are lots of other patterns and operators for putting
11981198
together a reactive pipeline that makes many remote calls, potentially some nested,
1199-
inter-dependent, without ever blocking until the end.
1199+
interdependent, without ever blocking until the end.
12001200

12011201
[NOTE]
12021202
====

framework-docs/src/docs/asciidoc/web/webmvc-view.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ as the value for the `fieldType` parameter.
288288

289289
The parameters to any of the above macros have consistent meanings:
290290

291-
* `path`: The name of the field to bind to (ie "command.name")
291+
* `path`: The name of the field to bind to (for example, "command.name")
292292
* `options`: A `Map` of all the available values that can be selected from in the input
293293
field. The keys to the map represent the values that are POSTed back from the form
294294
and bound to the command object. Map objects stored against the keys are the labels

framework-docs/src/docs/asciidoc/web/webmvc.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ The following table describes the properties `CookieLocaleResolver`:
978978
| Property | Default | Description
979979

980980
| `cookieName`
981-
| classname + LOCALE
981+
| class name + LOCALE
982982
| The name of the cookie
983983

984984
| `cookieMaxAge`

0 commit comments

Comments
 (0)