From caf6760ddd5f616a8d71cd7445d5709f61296690 Mon Sep 17 00:00:00 2001 From: LEE Juchan Date: Thu, 19 Aug 2021 23:21:15 +0900 Subject: [PATCH] Fix grammatical errors in Javadoc Closes gh-27298 --- .../src/main/java/org/aopalliance/intercept/Joinpoint.java | 2 +- .../main/java/org/springframework/web/util/UrlPathHelper.java | 2 +- .../web/reactive/function/server/RequestPredicate.java | 2 +- .../springframework/web/servlet/function/RequestPredicate.java | 2 +- .../adapter/standard/ConvertingEncoderDecoderSupport.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-aop/src/main/java/org/aopalliance/intercept/Joinpoint.java b/spring-aop/src/main/java/org/aopalliance/intercept/Joinpoint.java index 780275e978..3b75cfdc8f 100644 --- a/spring-aop/src/main/java/org/aopalliance/intercept/Joinpoint.java +++ b/spring-aop/src/main/java/org/aopalliance/intercept/Joinpoint.java @@ -26,7 +26,7 @@ import javax.annotation.Nullable; * terminology). * *

A runtime joinpoint is an event that occurs on a static - * joinpoint (i.e. a location in a the program). For instance, an + * joinpoint (i.e. a location in a program). For instance, an * invocation is the runtime joinpoint on a method (static joinpoint). * The static part of a given joinpoint can be generically retrieved * using the {@link #getStaticPart()} method. diff --git a/spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java b/spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java index c216c25ae6..575f822f95 100644 --- a/spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java +++ b/spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java @@ -190,7 +190,7 @@ public class UrlPathHelper { /** * {@link #getLookupPathForRequest Resolve} the lookupPath and cache it in a - * a request attribute with the key {@link #PATH_ATTRIBUTE} for subsequent + * request attribute with the key {@link #PATH_ATTRIBUTE} for subsequent * access via {@link #getResolvedLookupPath(ServletRequest)}. * @param request the current request * @return the resolved path diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicate.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicate.java index 57f18db299..c9bd4f30a6 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicate.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicate.java @@ -71,7 +71,7 @@ public interface RequestPredicate { /** * Transform the given request into a request used for a nested route. For instance, - * a path-based predicate can return a {@code ServerRequest} with a the path remaining + * a path-based predicate can return a {@code ServerRequest} with a path remaining * after a match. *

The default implementation returns an {@code Optional} wrapping the given request if * {@link #test(ServerRequest)} evaluates to {@code true}; or {@link Optional#empty()} diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicate.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicate.java index 4e9ec82d5b..a0cabe7e54 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicate.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicate.java @@ -71,7 +71,7 @@ public interface RequestPredicate { /** * Transform the given request into a request used for a nested route. For instance, - * a path-based predicate can return a {@code ServerRequest} with a the path remaining + * a path-based predicate can return a {@code ServerRequest} with a path remaining * after a match. *

The default implementation returns an {@code Optional} wrapping the given request if * {@link #test(ServerRequest)} evaluates to {@code true}; or {@link Optional#empty()} diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java b/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java index 9570c929bc..328f325588 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java @@ -183,7 +183,7 @@ public abstract class ConvertingEncoderDecoderSupport { } /** - * Decode the a message into an object. + * Decode the message into an object. * @see javax.websocket.Decoder.Text#decode(String) * @see javax.websocket.Decoder.Binary#decode(ByteBuffer) */