Skip to content

Commit 729ce41

Browse files
Hanopesbrannen
authored andcommitted
Correct typos (#2018)
1 parent 1a37345 commit 729ce41

File tree

17 files changed

+41
-41
lines changed

17 files changed

+41
-41
lines changed

spring-aop/src/main/java/org/aopalliance/intercept/ConstructorInvocation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.lang.reflect.Constructor;
2020

2121
/**
22-
* Description of an invocation to a constuctor, given to an
22+
* Description of an invocation to a constructor, given to an
2323
* interceptor upon constructor-call.
2424
*
2525
* <p>A constructor invocation is a joinpoint and can be intercepted

spring-aop/src/main/java/org/springframework/aop/framework/CglibAopProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ public ProxyCallbackFilter(
795795
* <dt>For advised methods:</dt>
796796
* <dd>If the target is static and the advice chain is frozen then a
797797
* FixedChainStaticTargetInterceptor specific to the method is used to
798-
* invoke the advice chain. Otherwise a DyanmicAdvisedInterceptor is
798+
* invoke the advice chain. Otherwise a DynamicAdvisedInterceptor is
799799
* used.</dd>
800800
* <dt>For non-advised methods:</dt>
801801
* <dd>Where it can be determined that the method will not return {@code this}

spring-aop/src/main/java/org/springframework/aop/interceptor/CustomizableTraceInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class CustomizableTraceInterceptor extends AbstractTraceInterceptor {
7979

8080
/**
8181
* The {@code $[targetClassName]} placeholder.
82-
* Replaced with the fully-qualifed name of the {@code Class}
82+
* Replaced with the fully-qualified name of the {@code Class}
8383
* of the method invocation target.
8484
*/
8585
public static final String PLACEHOLDER_TARGET_CLASS_NAME = "$[targetClassName]";

spring-web/src/main/java/org/springframework/web/filter/ForwardedHeaderFilter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,16 +364,16 @@ public String getRequestUri() {
364364
if (this.requestUri == null) {
365365
return this.delegate.get().getRequestURI();
366366
}
367-
recalculatePathsIfNecesary();
367+
recalculatePathsIfNecessary();
368368
return this.requestUri;
369369
}
370370

371371
public StringBuffer getRequestUrl() {
372-
recalculatePathsIfNecesary();
372+
recalculatePathsIfNecessary();
373373
return new StringBuffer(this.requestUrl);
374374
}
375375

376-
private void recalculatePathsIfNecesary() {
376+
private void recalculatePathsIfNecessary() {
377377
if (!this.actualRequestUri.equals(this.delegate.get().getRequestURI())) {
378378
// Underlying path change (e.g. Servlet FORWARD).
379379
this.actualRequestUri = this.delegate.get().getRequestURI();

spring-webflux/src/main/java/org/springframework/web/reactive/resource/CssLinkResourceTransformer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,23 @@ public Mono<Resource> transform(ServerWebExchange exchange, Resource inputResour
7575
ResourceTransformerChain transformerChain) {
7676

7777
return transformerChain.transform(exchange, inputResource)
78-
.flatMap(ouptputResource -> {
79-
String filename = ouptputResource.getFilename();
78+
.flatMap(outputResource -> {
79+
String filename = outputResource.getFilename();
8080
if (!"css".equals(StringUtils.getFilenameExtension(filename)) ||
8181
inputResource instanceof EncodedResourceResolver.EncodedResource ||
8282
inputResource instanceof GzipResourceResolver.GzippedResource) {
83-
return Mono.just(ouptputResource);
83+
return Mono.just(outputResource);
8484
}
8585

8686
DataBufferFactory bufferFactory = exchange.getResponse().bufferFactory();
8787
Flux<DataBuffer> flux = DataBufferUtils
88-
.read(ouptputResource, bufferFactory, StreamUtils.BUFFER_SIZE);
88+
.read(outputResource, bufferFactory, StreamUtils.BUFFER_SIZE);
8989
return DataBufferUtils.join(flux)
9090
.flatMap(dataBuffer -> {
9191
CharBuffer charBuffer = DEFAULT_CHARSET.decode(dataBuffer.asByteBuffer());
9292
DataBufferUtils.release(dataBuffer);
9393
String cssContent = charBuffer.toString();
94-
return transformContent(cssContent, ouptputResource, transformerChain, exchange);
94+
return transformContent(cssContent, outputResource, transformerChain, exchange);
9595
});
9696
});
9797
}

spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/CrossOriginAnnotationIntegrationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,23 +254,23 @@ public void defaultAnnotationWithParams() {
254254

255255
@CrossOrigin
256256
@GetMapping(path = "/ambiguous-header", headers = "header1=a")
257-
public void ambigousHeader1a() {
257+
public void ambiguousHeader1a() {
258258
}
259259

260260
@CrossOrigin
261261
@GetMapping(path = "/ambiguous-header", headers = "header1=b")
262-
public void ambigousHeader1b() {
262+
public void ambiguousHeader1b() {
263263
}
264264

265265
@CrossOrigin
266266
@GetMapping(path = "/ambiguous-produces", produces = "application/xml")
267-
public String ambigousProducesXml() {
267+
public String ambiguousProducesXml() {
268268
return "<a></a>";
269269
}
270270

271271
@CrossOrigin
272272
@GetMapping(path = "/ambiguous-produces", produces = "application/json")
273-
public String ambigousProducesJson() {
273+
public String ambiguousProducesJson() {
274274
return "{}";
275275
}
276276

spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/CrossOriginTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,23 +338,23 @@ public void defaultAnnotationWithParams() {
338338

339339
@CrossOrigin
340340
@GetMapping(path = "/ambiguous-header", headers = "header1=a")
341-
public void ambigousHeader1a() {
341+
public void ambiguousHeader1a() {
342342
}
343343

344344
@CrossOrigin
345345
@GetMapping(path = "/ambiguous-header", headers = "header1=b")
346-
public void ambigousHeader1b() {
346+
public void ambiguousHeader1b() {
347347
}
348348

349349
@CrossOrigin
350350
@GetMapping(path = "/ambiguous-produces", produces = "application/xml")
351-
public String ambigousProducesXml() {
351+
public String ambiguousProducesXml() {
352352
return "<a></a>";
353353
}
354354

355355
@CrossOrigin
356356
@GetMapping(path = "/ambiguous-produces", produces = "application/json")
357-
public String ambigousProducesJson() {
357+
public String ambiguousProducesJson() {
358358
return "{}";
359359
}
360360

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ infrastructure, which enables modification of any bean definition as the contain
13091309

13101310
In this model, you set up some special bean definitions in your XML bean definition file
13111311
to configure the auto-proxy infrastructure. This lets you declare the targets
1312-
eligible for auto-proxying. You neet not use `ProxyFactoryBean`.
1312+
eligible for auto-proxying. You need not use `ProxyFactoryBean`.
13131313

13141314
There are two ways to do this:
13151315

@@ -1526,7 +1526,7 @@ pooling API.
15261526

15271527
NOTE: Commons Pool 1.5+ is also supported but is deprecated as of Spring Framework 4.2.
15281528

1529-
The following listig shows an example configuration:
1529+
The following listing shows an example configuration:
15301530

15311531
====
15321532
[source,xml,indent=0]

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ the return value should be passed, as the following example shows:
19401940

19411941
The `doAccessCheck` method must declare a parameter named `retVal`. The type of this
19421942
parameter constrains matching in the same way as described for `@AfterReturning`. For
1943-
example, you can decleare the method signature as follows:
1943+
example, you can declare the method signature as follows:
19441944

19451945
====
19461946
[source,java,indent=0]
@@ -2219,7 +2219,7 @@ Consider the following driver script:
22192219
----
22202220
====
22212221

2222-
With such a Boot class, we would get output similar to the folloiwng on standard output:
2222+
With such a Boot class, we would get output similar to the following on standard output:
22232223

22242224
====
22252225
[literal]
@@ -3386,7 +3386,7 @@ file, and the Spring configuration) are in place, we can create the following dr
33863386
We have one last thing to do. The introduction to this section did say that one could
33873387
switch on LTW selectively on a per-`ClassLoader` basis with Spring, and this is true.
33883388
However, for this example, we use a Java agent (supplied with Spring)
3389-
to switch on the LTW. We use the folloiwng command to run the `Main` class shown earlier:
3389+
to switch on the LTW. We use the following command to run the `Main` class shown earlier:
33903390

33913391
====
33923392
[literal]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6991,7 +6991,7 @@ implementation type, it is safer to declare the most specific return type possib
69916991
A `@Bean`-annotated method can have an arbitrary number of parameters that describe the
69926992
dependencies required to build that bean. For instance, if our `TransferService`
69936993
requires an `AccountRepository`, we can materialize that dependency with a method
6994-
parameter, as the followig example shows:
6994+
parameter, as the following example shows:
69956995

69966996
====
69976997
[source,java,indent=0]

src/docs/asciidoc/core/core-databuffer-codec.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ composite buffers, if that's supported by the underlying byte buffer API.
9797
[[codecs]]
9898
== Codecs
9999

100-
The `org.springframework.core.codec` package provides the following stragy interfaces:
100+
The `org.springframework.core.codec` package provides the following strategy interfaces:
101101

102102
* `Encoder` to encode `Publisher<T>` into a stream of data buffers.
103103
* `Decoder` to decode `Publisher<DataBuffer>` into a stream of higher level objects.

src/docs/asciidoc/core/core-expressions.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ following example shows how to use variables:
10821082
The `#this` variable is always defined and refers to the current evaluation object
10831083
(against which unqualified references are resolved). The `#root` variable is always
10841084
defined and refers to the root context object. Although `#this` may vary as components of
1085-
an expression are evaluated, `#root` always refers to the root. The followig examples
1085+
an expression are evaluated, `#root` always refers to the root. The following examples
10861086
show how to use the `#this` and `#root` variables:
10871087

10881088
====
@@ -1271,7 +1271,7 @@ The following example shows how to use the Elvis operator:
12711271
----
12721272
====
12731273

1274-
The following listing ahows A more complex example:
1274+
The following listing shows A more complex example:
12751275

12761276
====
12771277
[source,java,indent=0]

src/docs/asciidoc/core/core-resources.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ the current working directory).
462462

463463
Note that the use of the special classpath prefix or a standard URL prefix on the
464464
location path overrides the default type of `Resource` created to load the
465-
definition. Consider the folowing example:
465+
definition. Consider the following example:
466466

467467
[source,java,indent=0]
468468
[subs="verbatim,quotes"]
@@ -711,7 +711,7 @@ In practice, this means the following examples are equivalent:
711711
----
712712
====
713713

714-
The following exmaples are also equivalent (even though it would make sense for them to be different, as one
714+
The following examples are also equivalent (even though it would make sense for them to be different, as one
715715
case is relative and the other absolute):
716716

717717
====

src/docs/asciidoc/core/core-validation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ the `BeanWrapper` directly. If you use only the `DataBinder` and the `BeanFactor
262262
and their default implementations, you should skip ahead to the <<beans-beans-conversion,section about
263263
`PropertyEditors`>>.)
264264

265-
The following two example classess use the `BeanWrapper` to get and set
265+
The following two example classes use the `BeanWrapper` to get and set
266266
properties:
267267

268268
====

src/docs/asciidoc/integration.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ issue, switch to another HTTP client library.
10791079
===== URIs
10801080

10811081
Many of the `RestTemplate` methods accept a URI template and URI template variables,
1082-
either as a `String` variable argumet, or as `Map<String,String>`.
1082+
either as a `String` variable argument, or as `Map<String,String>`.
10831083

10841084
The following example uses a `String` variable argument:
10851085

@@ -2044,7 +2044,7 @@ these callback methods.
20442044
[[jms-receiving]]
20452045
=== Receiving a Message
20462046

2047-
This describes how to recieve messages with JMS in Spring.
2047+
This describes how to receive messages with JMS in Spring.
20482048

20492049

20502050
[[jms-receiving-sync]]
@@ -2241,7 +2241,7 @@ The next example shows another MDP that can handle only receiving JMS
22412241
defaults to `handleMessage`), but it is configurable (as you can see later in this section). Notice
22422242
also how the `receive(..)` method is strongly typed to receive and respond only to JMS
22432243
`TextMessage` messages.
2244-
The following listing shows the definition of the `TextMessageDelegage` interface:
2244+
The following listing shows the definition of the `TextMessageDelegate` interface:
22452245

22462246
====
22472247
[source,java,indent=0]
@@ -2627,7 +2627,7 @@ and programmatically register only your endpoints through `JmsListenerConfigurer
26272627
==== Annotated Endpoint Method Signature
26282628

26292629
So far, we have been injecting a simple `String` in our endpoint, but it can actually
2630-
have a very flexible method signature. In the follwoing example, we rewrite it to inject the `Order` with
2630+
have a very flexible method signature. In the following example, we rewrite it to inject the `Order` with
26312631
a custom header:
26322632

26332633
====
@@ -5364,7 +5364,7 @@ could resemble the following example in non-managed mode:
53645364
====
53655365

53665366
In managed mode (that is, in a Java EE environment), the configuration could resemble
5367-
the followig example:
5367+
the following example:
53685368

53695369
====
53705370
[source,xml,indent=0]
@@ -6062,7 +6062,7 @@ to create a `MimeMessage`, as the following example shows:
60626062
==== Sending Attachments and Inline Resources
60636063

60646064
Multipart email messages allow for both attachments and inline resources. Examples of
6065-
inline resources includee an image or a stylesheet that you want to use in your message but
6065+
inline resources include an image or a stylesheet that you want to use in your message but
60666066
that you do not want displayed as an attachment.
60676067

60686068
[[mail-javamail-mime-attachments-attachment]]
@@ -6139,7 +6139,7 @@ is okay in the context of the aforementioned examples, where the intent was to s
61396139
the very basics of the API.
61406140

61416141
In your typical enterprise application, though, developers often do not create the content
6142-
of email messagess by using the previously shown approach for a number of reasons:
6142+
of email messages by using the previously shown approach for a number of reasons:
61436143

61446144
* Creating HTML-based email content in Java code is tedious and error prone.
61456145
* There is no clear separation between display logic and business logic.
@@ -8251,7 +8251,7 @@ The following example shows how to do so:
82518251
----
82528252
====
82538253

8254-
The `CompositeCacheManager` in the preceding chains multiple `CacheManager` istancess and,
8254+
The `CompositeCacheManager` in the preceding chains multiple `CacheManager` instances and,
82558255
through the `fallbackToNoOpCache` flag, adds a no-op cache for all the
82568256
definitions not handled by the configured cache managers. That is, every cache
82578257
definition not found in either `jdkCache` or `gemfireCache` (configured earlier in the example) is

src/docs/asciidoc/languages/dynamic-languages.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ The following example shows the BeanShell "`implementation`" (we use the term lo
717717
----
718718
====
719719

720-
The following exxample shows the Spring XML that defines an "`instance`" of the above "`class`" (again,
720+
The following example shows the Spring XML that defines an "`instance`" of the above "`class`" (again,
721721
we use these terms very loosely here):
722722

723723
====

src/test/java/com/foo/ComponentBeanDefinitionParserTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void testBionicFirstLevelChildren() throws Exception {
6666
}
6767

6868
@Test
69-
public void testBionicSecondLevenChildren() throws Exception {
69+
public void testBionicSecondLevelChildren() throws Exception {
7070
Component cp = getBionicFamily();
7171
List<Component> components = cp.getComponents().get(0).getComponents();
7272
assertThat(2, equalTo(components.size()));

0 commit comments

Comments
 (0)