From 4c351e811ae21f7e43e6f4fa61a736b932b6d388 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Sat, 4 Feb 2023 23:20:29 +0900 Subject: [PATCH] Polish See gh-29928 --- .../org/springframework/mail/javamail/JavaMailSenderImpl.java | 4 ++-- .../java/org/springframework/asm/RecordComponentWriter.java | 2 +- .../main/java/org/springframework/util/InstanceFilter.java | 2 +- .../java/org/springframework/r2dbc/core/DatabaseClient.java | 2 +- .../test/web/servlet/result/XpathResultMatchers.java | 2 +- .../springframework/http/codec/protobuf/ProtobufDecoder.java | 2 +- .../src/main/java/org/springframework/web/cors/CorsUtils.java | 2 +- .../java/org/springframework/web/cors/reactive/CorsUtils.java | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/spring-context-support/src/main/java/org/springframework/mail/javamail/JavaMailSenderImpl.java b/spring-context-support/src/main/java/org/springframework/mail/javamail/JavaMailSenderImpl.java index 06d0e126082f..6e0eb50ff5b0 100644 --- a/spring-context-support/src/main/java/org/springframework/mail/javamail/JavaMailSenderImpl.java +++ b/spring-context-support/src/main/java/org/springframework/mail/javamail/JavaMailSenderImpl.java @@ -132,10 +132,10 @@ public void setJavaMailProperties(Properties javaMailProperties) { } /** - * Allow {code Map} access to the JavaMail properties of this sender, + * Allow {@code Map} access to the JavaMail properties of this sender, * with the option to add or override specific entries. *

Useful for specifying entries directly, for example via - * {code javaMailProperties[mail.smtp.auth]}. + * {@code javaMailProperties[mail.smtp.auth]}. */ public Properties getJavaMailProperties() { return this.javaMailProperties; diff --git a/spring-core/src/main/java/org/springframework/asm/RecordComponentWriter.java b/spring-core/src/main/java/org/springframework/asm/RecordComponentWriter.java index bd007ac26d61..c36d2054fcb3 100644 --- a/spring-core/src/main/java/org/springframework/asm/RecordComponentWriter.java +++ b/spring-core/src/main/java/org/springframework/asm/RecordComponentWriter.java @@ -37,7 +37,7 @@ final class RecordComponentWriter extends RecordComponentVisitor { /** The name_index field of the Record attribute. */ private final int nameIndex; - /** The descriptor_index field of the the Record attribute. */ + /** The descriptor_index field of the Record attribute. */ private final int descriptorIndex; /** diff --git a/spring-core/src/main/java/org/springframework/util/InstanceFilter.java b/spring-core/src/main/java/org/springframework/util/InstanceFilter.java index 3eb69149e168..f47683f8ce8d 100644 --- a/spring-core/src/main/java/org/springframework/util/InstanceFilter.java +++ b/spring-core/src/main/java/org/springframework/util/InstanceFilter.java @@ -64,7 +64,7 @@ public InstanceFilter(@Nullable Collection includes, /** - * Determine if the specified {code instance} matches this filter. + * Determine if the specified {@code instance} matches this filter. */ public boolean match(T instance) { Assert.notNull(instance, "Instance to match must not be null"); diff --git a/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java b/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java index 8ef54b37159f..71569e190180 100644 --- a/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java +++ b/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java @@ -80,7 +80,7 @@ public interface DatabaseClient extends ConnectionAccessor { * bind markers or named parameters (e.g. {@literal :foo, :bar}) when * {@link NamedParameterExpander} is enabled. *

Accepts {@link PreparedOperation} as SQL and binding {@link Supplier}. - *

{code DatabaseClient} implementations should defer the resolution of + *

{@code DatabaseClient} implementations should defer the resolution of * the SQL string as much as possible, ideally up to the point where a * {@code Subscription} happens. This is the case for the default implementation. * @param sqlSupplier a supplier for the SQL statement diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/result/XpathResultMatchers.java b/spring-test/src/main/java/org/springframework/test/web/servlet/result/XpathResultMatchers.java index 4528d2b40d4d..dd3256f22f36 100644 --- a/spring-test/src/main/java/org/springframework/test/web/servlet/result/XpathResultMatchers.java +++ b/spring-test/src/main/java/org/springframework/test/web/servlet/result/XpathResultMatchers.java @@ -83,7 +83,7 @@ public ResultMatcher nodeList(Matcher matcher) { } /** - * Get the response encoding if explicitly defined in the response, {code null} otherwise. + * Get the response encoding if explicitly defined in the response, {@code null} otherwise. */ @Nullable private String getDefinedEncoding(MockHttpServletResponse response) { diff --git a/spring-web/src/main/java/org/springframework/http/codec/protobuf/ProtobufDecoder.java b/spring-web/src/main/java/org/springframework/http/codec/protobuf/ProtobufDecoder.java index 4804dcf1f4f5..72000d63edc3 100644 --- a/spring-web/src/main/java/org/springframework/http/codec/protobuf/ProtobufDecoder.java +++ b/spring-web/src/main/java/org/springframework/http/codec/protobuf/ProtobufDecoder.java @@ -265,7 +265,7 @@ public Iterable apply(DataBuffer input) { * Parse message size as a varint from the input stream, updating {@code messageBytesToRead} and * {@code offset} fields if needed to allow processing of upcoming chunks. * Inspired from {@link CodedInputStream#readRawVarint32(int, java.io.InputStream)} - * @return {code true} when the message size is parsed successfully, {code false} when the message size is + * @return {@code true} when the message size is parsed successfully, {@code false} when the message size is * truncated * @see Base 128 Varints */ diff --git a/spring-web/src/main/java/org/springframework/web/cors/CorsUtils.java b/spring-web/src/main/java/org/springframework/web/cors/CorsUtils.java index eec489d6cc27..b34f3167a125 100644 --- a/spring-web/src/main/java/org/springframework/web/cors/CorsUtils.java +++ b/spring-web/src/main/java/org/springframework/web/cors/CorsUtils.java @@ -66,7 +66,7 @@ else if ("https".equals(scheme) || "wss".equals(scheme)) { } /** - * Returns {@code true} if the request is a valid CORS pre-flight one by checking {code OPTIONS} method with + * Returns {@code true} if the request is a valid CORS pre-flight one by checking {@code OPTIONS} method with * {@code Origin} and {@code Access-Control-Request-Method} headers presence. */ public static boolean isPreFlightRequest(HttpServletRequest request) { diff --git a/spring-web/src/main/java/org/springframework/web/cors/reactive/CorsUtils.java b/spring-web/src/main/java/org/springframework/web/cors/reactive/CorsUtils.java index 1d78ed9aab0c..4a1be8b56cc3 100644 --- a/spring-web/src/main/java/org/springframework/web/cors/reactive/CorsUtils.java +++ b/spring-web/src/main/java/org/springframework/web/cors/reactive/CorsUtils.java @@ -45,7 +45,7 @@ public static boolean isCorsRequest(ServerHttpRequest request) { } /** - * Returns {@code true} if the request is a valid CORS pre-flight one by checking {code OPTIONS} method with + * Returns {@code true} if the request is a valid CORS pre-flight one by checking {@code OPTIONS} method with * {@code Origin} and {@code Access-Control-Request-Method} headers presence. */ public static boolean isPreFlightRequest(ServerHttpRequest request) {