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]

0 commit comments

Comments
 (0)