diff --git a/build.gradle b/build.gradle index 50ae48c69d5..d005cc2588a 100644 --- a/build.gradle +++ b/build.gradle @@ -128,10 +128,12 @@ configure(allprojects) { project -> entry 'tomcat-embed-core' entry 'tomcat-embed-websocket' } - dependencySet(group: 'io.undertow', version: '2.2.10.Final') { + dependencySet(group: 'io.undertow', version: '2.2.12.Final') { entry 'undertow-core' - entry('undertow-servlet-jakartaee9') - entry('undertow-websockets-jsr-jakartaee9') + entry('undertow-servlet-jakartaee9') { + exclude group: "org.jboss.spec.javax.annotation", name: "jboss-annotations-api_1.3_spec" + } + entry 'undertow-websockets-jsr-jakartaee9' } dependencySet(group: 'com.squareup.okhttp3', version: '3.14.9') { @@ -345,7 +347,12 @@ configure([rootProject] + javaProjects) { project -> "https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/", "https://projectreactor.io/docs/test/release/api/", "https://junit.org/junit4/javadoc/4.13.2/", - "https://junit.org/junit5/docs/5.8.1/api/", + // TODO Uncomment link to JUnit 5 docs once we have sorted out + // the following warning in the build. + // + // warning: The code being documented uses packages in the unnamed module, but the packages defined in https://junit.org/junit5/docs/5.8.1/api/ are in named modules. + // + // "https://junit.org/junit5/docs/5.8.1/api/", "https://www.reactive-streams.org/reactive-streams-1.0.3-javadoc/", "https://javadoc.io/static/io.rsocket/rsocket-core/1.1.1/", "https://r2dbc.io/spec/0.8.5.RELEASE/api/" diff --git a/gradle/docs.gradle b/gradle/docs.gradle index bfb26d152b9..c9bc9053031 100644 --- a/gradle/docs.gradle +++ b/gradle/docs.gradle @@ -46,8 +46,9 @@ task api(type: Javadoc) { stylesheetFile = file("src/docs/api/stylesheet.css") splitIndex = true links(project.ext.javadocLinks) - addStringOption('Xdoclint:none', '-quiet') - if(JavaVersion.current().isJava9Compatible()) { + addBooleanOption('Xdoclint:syntax', true) // only check syntax with doclint + addBooleanOption('Werror', true) // fail build on Javadoc warnings + if (JavaVersion.current().isJava9Compatible()) { addBooleanOption('html5', true) } } diff --git a/spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/target/QuickTargetSourceCreator.java b/spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/target/QuickTargetSourceCreator.java index a6a741e0f87..f7df6c30249 100644 --- a/spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/target/QuickTargetSourceCreator.java +++ b/spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/target/QuickTargetSourceCreator.java @@ -25,9 +25,11 @@ import org.springframework.lang.Nullable; /** * Convenient TargetSourceCreator using bean name prefixes to create one of three * well-known TargetSource types: - *
Compatible to the standard JavaBeans convention as implemented by
* {@link java.beans.PropertyEditorManager} but isolated from the latter's
* registered default editors for primitive types.
diff --git a/spring-beans/src/main/java/org/springframework/beans/PropertyAccessorUtils.java b/spring-beans/src/main/java/org/springframework/beans/PropertyAccessorUtils.java
index 55f50e5a275..564194e2f0a 100644
--- a/spring-beans/src/main/java/org/springframework/beans/PropertyAccessorUtils.java
+++ b/spring-beans/src/main/java/org/springframework/beans/PropertyAccessorUtils.java
@@ -134,8 +134,8 @@ public abstract class PropertyAccessorUtils {
/**
* Determine the canonical name for the given property path.
* Removes surrounding quotes from map keys:
- * {@code map['key']} -> {@code map[key]}
- * {@code map["key"]} -> {@code map[key]}
+ * {@code map['key']} → {@code map[key]}
+ * {@code map["key"]} → {@code map[key]}
* @param propertyName the bean property path
* @return the canonical representation of the property path
*/
diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingBean.java b/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingBean.java
index 1374c4105e9..57fa7ab222c 100644
--- a/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingBean.java
+++ b/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingBean.java
@@ -47,17 +47,17 @@ import org.springframework.util.ClassUtils;
* which uses this class to call a static initialization method:
*
*
- * <bean id="myObject" class="org.springframework.beans.factory.config.MethodInvokingBean"> - * <property name="staticMethod" value="com.whatever.MyClass.init"/> - * </bean>+ * <bean id="myObject" class="org.springframework.beans.factory.config.MethodInvokingBean"> + * <property name="staticMethod" value="com.whatever.MyClass.init"/> + * </bean> * *
An example of calling an instance method to start some server bean: * *
- * <bean id="myStarter" class="org.springframework.beans.factory.config.MethodInvokingBean"> - * <property name="targetObject" ref="myServer"/> - * <property name="targetMethod" value="start"/> - * </bean>+ * <bean id="myStarter" class="org.springframework.beans.factory.config.MethodInvokingBean"> + * <property name="targetObject" ref="myServer"/> + * <property name="targetMethod" value="start"/> + * </bean> * * @author Juergen Hoeller * @since 4.0.3 diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingFactoryBean.java b/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingFactoryBean.java index 86a6be98564..3ff39d81e5e 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingFactoryBean.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingFactoryBean.java @@ -56,24 +56,24 @@ import org.springframework.lang.Nullable; * which uses this class to call a static factory method: * *
- * <bean id="myObject" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> - * <property name="staticMethod" value="com.whatever.MyClassFactory.getInstance"/> - * </bean>+ * <bean id="myObject" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> + * <property name="staticMethod" value="com.whatever.MyClassFactory.getInstance"/> + * </bean> * *
An example of calling a static method then an instance method to get at a * Java system property. Somewhat verbose, but it works. * *
- * <bean id="sysProps" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> - * <property name="targetClass" value="java.lang.System"/> - * <property name="targetMethod" value="getProperties"/> - * </bean> + * <bean id="sysProps" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> + * <property name="targetClass" value="java.lang.System"/> + * <property name="targetMethod" value="getProperties"/> + * </bean> * - * <bean id="javaVersion" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> - * <property name="targetObject" ref="sysProps"/> - * <property name="targetMethod" value="getProperty"/> - * <property name="arguments" value="java.version"/> - * </bean>+ * <bean id="javaVersion" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> + * <property name="targetObject" ref="sysProps"/> + * <property name="targetMethod" value="getProperty"/> + * <property name="arguments" value="java.version"/> + * </bean> * * @author Colin Sampaleanu * @author Juergen Hoeller diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/config/ServiceLocatorFactoryBean.java b/spring-beans/src/main/java/org/springframework/beans/factory/config/ServiceLocatorFactoryBean.java index e0ee01e6e3d..272e97f5b74 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/config/ServiceLocatorFactoryBean.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/config/ServiceLocatorFactoryBean.java @@ -83,22 +83,22 @@ import org.springframework.util.StringUtils; *
A sample config in an XML-based * {@link org.springframework.beans.factory.BeanFactory} might look as follows: * - *
<beans> + ** *<beans> * - * <!-- Prototype bean since we have state --> - * <bean id="myService" class="a.b.c.MyService" singleton="false"/> + * <!-- Prototype bean since we have state --> + * <bean id="myService" class="a.b.c.MyService" singleton="false"/> * - * <!-- will lookup the above 'myService' bean by *TYPE* --> + * <!-- will lookup the above 'myService' bean by *TYPE* --> * <bean id="myServiceFactory" - * class="org.springframework.beans.factory.config.ServiceLocatorFactoryBean"> - * <property name="serviceLocatorInterface" value="a.b.c.ServiceFactory"/> - * </bean> + * class="org.springframework.beans.factory.config.ServiceLocatorFactoryBean"> + * <property name="serviceLocatorInterface" value="a.b.c.ServiceFactory"/> + * </bean> * - * <bean id="clientBean" class="a.b.c.MyClientBean"> - * <property name="myServiceFactory" ref="myServiceFactory"/> - * </bean> + * <bean id="clientBean" class="a.b.c.MyClientBean"> + * <property name="myServiceFactory" ref="myServiceFactory"/> + * </bean> * - *</beans>+ *</beans>
The attendant {@code MyClientBean} class implementation might then * look something like this: @@ -135,22 +135,22 @@ import org.springframework.util.StringUtils; *
A sample config in an XML-based * {@link org.springframework.beans.factory.BeanFactory} might look as follows: * - *
<beans> + ** *<beans> * - * <!-- Prototype beans since we have state (both extend MyService) --> - * <bean id="specialService" class="a.b.c.SpecialService" singleton="false"/> - * <bean id="anotherService" class="a.b.c.AnotherService" singleton="false"/> + * <!-- Prototype beans since we have state (both extend MyService) --> + * <bean id="specialService" class="a.b.c.SpecialService" singleton="false"/> + * <bean id="anotherService" class="a.b.c.AnotherService" singleton="false"/> * * <bean id="myServiceFactory" - * class="org.springframework.beans.factory.config.ServiceLocatorFactoryBean"> - * <property name="serviceLocatorInterface" value="a.b.c.ServiceFactory"/> - * </bean> + * class="org.springframework.beans.factory.config.ServiceLocatorFactoryBean"> + * <property name="serviceLocatorInterface" value="a.b.c.ServiceFactory"/> + * </bean> * - * <bean id="clientBean" class="a.b.c.MyClientBean"> - * <property name="myServiceFactory" ref="myServiceFactory"/> - * </bean> + * <bean id="clientBean" class="a.b.c.MyClientBean"> + * <property name="myServiceFactory" ref="myServiceFactory"/> + * </bean> * - *</beans>+ *</beans>
The attendant {@code MyClientBean} class implementation might then * look something like this: diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java b/spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java index e34d7c25ce8..7949003c68b 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java @@ -86,7 +86,7 @@ public abstract class YamlProcessor { * * when mapped with *
- * setDocumentMatchers(properties ->
+ * setDocumentMatchers(properties ->
* ("prod".equals(properties.getProperty("environment")) ? MatchStatus.FOUND : MatchStatus.NOT_FOUND));
*
* would end up as
diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java
index e1a2dbd1d37..77abc22fce6 100644
--- a/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java
+++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java
@@ -1321,7 +1321,7 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
* @param beanName the name of the bean
* @param mbd the bean definition for the bean
* @param explicitArgs argument values passed in programmatically via the getBean method,
- * or {@code null} if none (-> use constructor argument values from bean definition)
+ * or {@code null} if none (implying the use of constructor argument values from bean definition)
* @return a BeanWrapper for the new instance
* @see #getBean(String, Object[])
*/
@@ -1342,7 +1342,7 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
* @param mbd the bean definition for the bean
* @param ctors the chosen candidate constructors
* @param explicitArgs argument values passed in programmatically via the getBean method,
- * or {@code null} if none (-> use constructor argument values from bean definition)
+ * or {@code null} if none (implying the use of constructor argument values from bean definition)
* @return a BeanWrapper for the new instance
*/
protected BeanWrapper autowireConstructor(
diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/xml/DefaultDocumentLoader.java b/spring-beans/src/main/java/org/springframework/beans/factory/xml/DefaultDocumentLoader.java
index a443e7b1d66..08b1d16f277 100644
--- a/spring-beans/src/main/java/org/springframework/beans/factory/xml/DefaultDocumentLoader.java
+++ b/spring-beans/src/main/java/org/springframework/beans/factory/xml/DefaultDocumentLoader.java
@@ -39,7 +39,7 @@ import org.springframework.util.xml.XmlValidationModeDetector;
* when starting your JVM. For example, to use the Oracle {@link DocumentBuilder},
* you might start your application like as follows:
*
- * java -Djavax.xml.parsers.DocumentBuilderFactory=oracle.xml.jaxp.JXDocumentBuilderFactory MyMainClass+ *
java -Djavax.xml.parsers.DocumentBuilderFactory=oracle.xml.jaxp.JXDocumentBuilderFactory MyMainClass* * @author Rob Harrop * @author Juergen Hoeller diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/xml/PluggableSchemaResolver.java b/spring-beans/src/main/java/org/springframework/beans/factory/xml/PluggableSchemaResolver.java index 3b1bff1febc..82d632302d5 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/xml/PluggableSchemaResolver.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/xml/PluggableSchemaResolver.java @@ -71,13 +71,13 @@ public class PluggableSchemaResolver implements EntityResolver { private final String schemaMappingsLocation; - /** Stores the mapping of schema URL -> local schema path. */ + /** Stores the mapping of schema URL → local schema path. */ @Nullable private volatile Map
NOTE: Invoke {@code addInline} after {@link #setText}; * else, mail readers might not be able to resolve inline references correctly. * @param contentId the content ID to use. Will end up as "Content-ID" header - * in the body part, surrounded by angle brackets: e.g. "myId" -> "<myId>". + * in the body part, surrounded by angle brackets: e.g. "myId" → "<myId>". * Can be referenced in HTML source via src="cid:myId" expressions. * @param dataSource the {@code jakarta.activation.DataSource} to take * the content from, determining the InputStream and the content type @@ -923,7 +923,7 @@ public class MimeMessageHelper { *
NOTE: Invoke {@code addInline} after {@link #setText}; * else, mail readers might not be able to resolve inline references correctly. * @param contentId the content ID to use. Will end up as "Content-ID" header - * in the body part, surrounded by angle brackets: e.g. "myId" -> "<myId>". + * in the body part, surrounded by angle brackets: e.g. "myId" → "<myId>". * Can be referenced in HTML source via src="cid:myId" expressions. * @param file the File resource to take the content from * @throws MessagingException in case of errors @@ -950,7 +950,7 @@ public class MimeMessageHelper { *
NOTE: Invoke {@code addInline} after {@link #setText}; * else, mail readers might not be able to resolve inline references correctly. * @param contentId the content ID to use. Will end up as "Content-ID" header - * in the body part, surrounded by angle brackets: e.g. "myId" -> "<myId>". + * in the body part, surrounded by angle brackets: e.g. "myId" → "<myId>". * Can be referenced in HTML source via src="cid:myId" expressions. * @param resource the resource to take the content from * @throws MessagingException in case of errors @@ -976,7 +976,7 @@ public class MimeMessageHelper { *
NOTE: Invoke {@code addInline} after {@code setText}; * else, mail readers might not be able to resolve inline references correctly. * @param contentId the content ID to use. Will end up as "Content-ID" header - * in the body part, surrounded by angle brackets: e.g. "myId" -> "<myId>". + * in the body part, surrounded by angle brackets: e.g. "myId" → "<myId>". * Can be referenced in HTML source via src="cid:myId" expressions. * @param inputStreamSource the resource to take the content from * @param contentType the content type to use for the element diff --git a/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java b/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java index c12647a3ca6..d686b5f2992 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java @@ -156,7 +156,7 @@ public class AnnotationBeanNameGenerator implements BeanNameGenerator { /** * Derive a default bean name from the given bean definition. *
The default implementation simply builds a decapitalized version - * of the short class name: e.g. "mypackage.MyJdbcDao" -> "myJdbcDao". + * of the short class name: e.g. "mypackage.MyJdbcDao" → "myJdbcDao". *
Note that inner classes will thus have names of the form * "outerClassName.InnerClassName", which because of the period in the * name may be an issue if you are autowiring by name. diff --git a/spring-context/src/main/java/org/springframework/context/support/ReloadableResourceBundleMessageSource.java b/spring-context/src/main/java/org/springframework/context/support/ReloadableResourceBundleMessageSource.java index 6b6ff96af18..1a93dd38d08 100644 --- a/spring-context/src/main/java/org/springframework/context/support/ReloadableResourceBundleMessageSource.java +++ b/spring-context/src/main/java/org/springframework/context/support/ReloadableResourceBundleMessageSource.java @@ -315,7 +315,7 @@ public class ReloadableResourceBundleMessageSource extends AbstractResourceBased /** * Calculate the filenames for the given bundle basename and Locale, * appending language code, country code, and variant code. - * E.g.: basename "messages", Locale "de_AT_oo" -> "messages_de_AT_OO", + *
For example, basename "messages", Locale "de_AT_oo" → "messages_de_AT_OO", * "messages_de_AT", "messages_de". *
Follows the rules defined by {@link java.util.Locale#toString()}. * @param basename the basename of the bundle diff --git a/spring-context/src/main/java/org/springframework/ui/context/support/ResourceBundleThemeSource.java b/spring-context/src/main/java/org/springframework/ui/context/support/ResourceBundleThemeSource.java index 0e5ba7e9a85..fe68fc0fc8c 100644 --- a/spring-context/src/main/java/org/springframework/ui/context/support/ResourceBundleThemeSource.java +++ b/spring-context/src/main/java/org/springframework/ui/context/support/ResourceBundleThemeSource.java @@ -87,7 +87,7 @@ public class ResourceBundleThemeSource implements HierarchicalThemeSource, BeanC /** * Set the prefix that gets applied to the ResourceBundle basenames, * i.e. the theme names. - * E.g.: basenamePrefix="test.", themeName="theme" -> basename="test.theme". + * E.g.: basenamePrefix="test.", themeName="theme" → basename="test.theme". *
Note that ResourceBundle names are effectively classpath locations: As a * consequence, the JDK's standard ResourceBundle treats dots as package separators. * This means that "test.theme" is effectively equivalent to "test/theme", diff --git a/spring-context/src/main/java/org/springframework/validation/Errors.java b/spring-context/src/main/java/org/springframework/validation/Errors.java index ebaa9460bf1..45ae5d7b57a 100644 --- a/spring-context/src/main/java/org/springframework/validation/Errors.java +++ b/spring-context/src/main/java/org/springframework/validation/Errors.java @@ -83,8 +83,8 @@ public interface Errors { * {@code pushNestedPath(String)} call. *
Using the nested path stack allows to set temporary nested paths * for subobjects without having to worry about a temporary path holder. - *
For example: current path "spouse.", pushNestedPath("child") -> - * result path "spouse.child."; popNestedPath() -> "spouse." again. + *
For example: current path "spouse.", pushNestedPath("child") → + * result path "spouse.child."; popNestedPath() → "spouse." again. * @param subPath the sub path to push onto the nested path stack * @see #popNestedPath */ diff --git a/spring-core/src/main/java/org/springframework/core/Constants.java b/spring-core/src/main/java/org/springframework/core/Constants.java index 8e91d511c10..f94b1842bb6 100644 --- a/spring-core/src/main/java/org/springframework/core/Constants.java +++ b/spring-core/src/main/java/org/springframework/core/Constants.java @@ -310,10 +310,10 @@ public class Constants { * Convert the given bean property name to a constant name prefix. *
Uses a common naming idiom: turning all lower case characters to * upper case, and prepending upper case characters with an underscore. - *
Example: "imageSize" -> "IMAGE_SIZE"
- * Example: "imagesize" -> "IMAGESIZE".
- * Example: "ImageSize" -> "_IMAGE_SIZE".
- * Example: "IMAGESIZE" -> "_I_M_A_G_E_S_I_Z_E"
+ *
Example: "imageSize" → "IMAGE_SIZE"
+ * Example: "imagesize" → "IMAGESIZE".
+ * Example: "ImageSize" → "_IMAGE_SIZE".
+ * Example: "IMAGESIZE" → "_I_M_A_G_E_S_I_Z_E"
* @param propertyName the name of the bean property
* @return the corresponding constant name prefix
* @see #getValuesForProperty
diff --git a/spring-core/src/main/java/org/springframework/core/SmartClassLoader.java b/spring-core/src/main/java/org/springframework/core/SmartClassLoader.java
index e6a39c149ec..964c791a8e0 100644
--- a/spring-core/src/main/java/org/springframework/core/SmartClassLoader.java
+++ b/spring-core/src/main/java/org/springframework/core/SmartClassLoader.java
@@ -91,7 +91,6 @@ public interface SmartClassLoader {
* not being possible (thrown by the default implementation in this interface)
* @since 5.3.4
* @see ClassLoader#defineClass(String, byte[], int, int, ProtectionDomain)
- * @see java.lang.invoke.MethodHandles.Lookup#defineClass(byte[])
*/
default Class> publicDefineClass(String name, byte[] b, @Nullable ProtectionDomain protectionDomain) {
throw new UnsupportedOperationException();
diff --git a/spring-core/src/main/java/org/springframework/core/io/FileSystemResource.java b/spring-core/src/main/java/org/springframework/core/io/FileSystemResource.java
index d0f7d392e80..feb2f9067da 100644
--- a/spring-core/src/main/java/org/springframework/core/io/FileSystemResource.java
+++ b/spring-core/src/main/java/org/springframework/core/io/FileSystemResource.java
@@ -70,9 +70,9 @@ public class FileSystemResource extends AbstractResource implements WritableReso
*
Note: When building relative resources via {@link #createRelative}, * it makes a difference whether the specified resource base path here * ends with a slash or not. In the case of "C:/dir1/", relative paths - * will be built underneath that root: e.g. relative path "dir2" -> + * will be built underneath that root: e.g. relative path "dir2" → * "C:/dir1/dir2". In the case of "C:/dir1", relative paths will apply - * at the same directory level: relative path "dir2" -> "C:/dir2". + * at the same directory level: relative path "dir2" → "C:/dir2". * @param path a file path * @see #FileSystemResource(Path) */ @@ -87,7 +87,7 @@ public class FileSystemResource extends AbstractResource implements WritableReso * Create a new {@code FileSystemResource} from a {@link File} handle. *
Note: When building relative resources via {@link #createRelative}, * the relative path will apply at the same directory level: - * e.g. new File("C:/dir1"), relative path "dir2" -> "C:/dir2"! + * e.g. new File("C:/dir1"), relative path "dir2" → "C:/dir2"! * If you prefer to have relative paths built underneath the given root directory, * use the {@link #FileSystemResource(String) constructor with a file path} * to append a trailing slash to the root path: "C:/dir1/", which indicates @@ -111,7 +111,7 @@ public class FileSystemResource extends AbstractResource implements WritableReso * path cleaning and {@link #createRelative(String)} handling. *
Note: When building relative resources via {@link #createRelative}, * the relative path will apply at the same directory level: - * e.g. Paths.get("C:/dir1"), relative path "dir2" -> "C:/dir2"! + * e.g. Paths.get("C:/dir1"), relative path "dir2" → "C:/dir2"! * If you prefer to have relative paths built underneath the given root directory, * use the {@link #FileSystemResource(String) constructor with a file path} * to append a trailing slash to the root path: "C:/dir1/", which indicates diff --git a/spring-core/src/main/java/org/springframework/core/io/PathResource.java b/spring-core/src/main/java/org/springframework/core/io/PathResource.java index bd334cc5185..6412f001a2b 100644 --- a/spring-core/src/main/java/org/springframework/core/io/PathResource.java +++ b/spring-core/src/main/java/org/springframework/core/io/PathResource.java @@ -64,7 +64,7 @@ public class PathResource extends AbstractResource implements WritableResource { * Create a new PathResource from a Path handle. *
Note: Unlike {@link FileSystemResource}, when building relative resources * via {@link #createRelative}, the relative path will be built underneath - * the given root: e.g. Paths.get("C:/dir1/"), relative path "dir2" -> "C:/dir1/dir2"! + * the given root: e.g. Paths.get("C:/dir1/"), relative path "dir2" → "C:/dir1/dir2"! * @param path a Path handle */ public PathResource(Path path) { @@ -76,7 +76,7 @@ public class PathResource extends AbstractResource implements WritableResource { * Create a new PathResource from a Path handle. *
Note: Unlike {@link FileSystemResource}, when building relative resources * via {@link #createRelative}, the relative path will be built underneath - * the given root: e.g. Paths.get("C:/dir1/"), relative path "dir2" -> "C:/dir1/dir2"! + * the given root: e.g. Paths.get("C:/dir1/"), relative path "dir2" → "C:/dir1/dir2"! * @param path a path * @see java.nio.file.Paths#get(String, String...) */ @@ -89,7 +89,7 @@ public class PathResource extends AbstractResource implements WritableResource { * Create a new PathResource from a Path handle. *
Note: Unlike {@link FileSystemResource}, when building relative resources * via {@link #createRelative}, the relative path will be built underneath - * the given root: e.g. Paths.get("C:/dir1/"), relative path "dir2" -> "C:/dir1/dir2"! + * the given root: e.g. Paths.get("C:/dir1/"), relative path "dir2" → "C:/dir1/dir2"! * @param uri a path URI * @see java.nio.file.Paths#get(URI) */ diff --git a/spring-core/src/main/java/org/springframework/util/AntPathMatcher.java b/spring-core/src/main/java/org/springframework/util/AntPathMatcher.java index 59087313ea5..99792561364 100644 --- a/spring-core/src/main/java/org/springframework/util/AntPathMatcher.java +++ b/spring-core/src/main/java/org/springframework/util/AntPathMatcher.java @@ -475,14 +475,14 @@ public class AntPathMatcher implements PathMatcher { /** * Given a pattern and a full path, determine the pattern-mapped part.
For example:
Assumes that {@link #match} returns {@code true} for '{@code pattern}' and '{@code path}', but * does not enforce this. */ diff --git a/spring-core/src/main/java/org/springframework/util/Assert.java b/spring-core/src/main/java/org/springframework/util/Assert.java index fbba65fbc46..fd841793936 100644 --- a/spring-core/src/main/java/org/springframework/util/Assert.java +++ b/spring-core/src/main/java/org/springframework/util/Assert.java @@ -43,7 +43,7 @@ import org.springframework.lang.Nullable; * *
* Assert.notNull(clazz, "The class must not be null"); - * Assert.isTrue(i > 0, "The value must be greater than zero");+ * Assert.isTrue(i > 0, "The value must be greater than zero"); * *
Mainly for internal use within the framework; for a more comprehensive suite * of assertion utilities consider {@code org.apache.commons.lang3.Validate} from diff --git a/spring-core/src/main/java/org/springframework/util/MethodInvoker.java b/spring-core/src/main/java/org/springframework/util/MethodInvoker.java index 8672b0197a6..b3e0c555480 100644 --- a/spring-core/src/main/java/org/springframework/util/MethodInvoker.java +++ b/spring-core/src/main/java/org/springframework/util/MethodInvoker.java @@ -288,7 +288,7 @@ public class MethodInvoker { * Algorithm that judges the match between the declared parameter types of a candidate method * and a specific list of arguments that this method is supposed to be invoked with. *
Determines a weight that represents the class hierarchy difference between types and - * arguments. A direct match, i.e. type Integer -> arg of class Integer, does not increase + * arguments. A direct match, i.e. type Integer → arg of class Integer, does not increase * the result - all direct matches means weight 0. A match between type Object and arg of * class Integer would increase the weight by 2, due to the superclass 2 steps up in the * hierarchy (i.e. Object) being the last one that still matches the required type Object. diff --git a/spring-core/src/main/java/org/springframework/util/PathMatcher.java b/spring-core/src/main/java/org/springframework/util/PathMatcher.java index 5d711d00b22..7268e7ba5b7 100644 --- a/spring-core/src/main/java/org/springframework/util/PathMatcher.java +++ b/spring-core/src/main/java/org/springframework/util/PathMatcher.java @@ -94,7 +94,7 @@ public interface PathMatcher { * Given a pattern and a full path, extract the URI template variables. URI template * variables are expressed through curly brackets ('{' and '}'). *
For example: For pattern "/hotels/{hotel}" and path "/hotels/1", this method will
- * return a map containing "hotel"->"1".
+ * return a map containing "hotel" → "1".
* @param pattern the path pattern, possibly containing URI templates
* @param path the full path to extract template variables from
* @return a map, containing variable names as keys; variables values as values
diff --git a/spring-core/src/main/java/org/springframework/util/StringUtils.java b/spring-core/src/main/java/org/springframework/util/StringUtils.java
index 269257fd602..5b5c762408f 100644
--- a/spring-core/src/main/java/org/springframework/util/StringUtils.java
+++ b/spring-core/src/main/java/org/springframework/util/StringUtils.java
@@ -571,7 +571,7 @@ public abstract class StringUtils {
/**
* Extract the filename from the given Java resource path,
- * e.g. {@code "mypath/myfile.txt" -> "myfile.txt"}.
+ * e.g. {@code "mypath/myfile.txt" → "myfile.txt"}.
* @param path the file path (may be {@code null})
* @return the extracted filename, or {@code null} if none
*/
@@ -587,7 +587,7 @@ public abstract class StringUtils {
/**
* Extract the filename extension from the given Java resource path,
- * e.g. "mypath/myfile.txt" -> "txt".
+ * e.g. "mypath/myfile.txt" → "txt".
* @param path the file path (may be {@code null})
* @return the extracted filename extension, or {@code null} if none
*/
@@ -612,7 +612,7 @@ public abstract class StringUtils {
/**
* Strip the filename extension from the given Java resource path,
- * e.g. "mypath/myfile.txt" -> "mypath/myfile".
+ * e.g. "mypath/myfile.txt" → "mypath/myfile".
* @param path the file path
* @return the path with stripped filename extension
*/
diff --git a/spring-core/src/main/java/org/springframework/util/comparator/InvertibleComparator.java b/spring-core/src/main/java/org/springframework/util/comparator/InvertibleComparator.java
index fbb17f687c5..7da876615b9 100644
--- a/spring-core/src/main/java/org/springframework/util/comparator/InvertibleComparator.java
+++ b/spring-core/src/main/java/org/springframework/util/comparator/InvertibleComparator.java
@@ -81,8 +81,8 @@ public class InvertibleComparator If not specified, the default gets determined by checking a target
* Connection on startup. If that check fails, the default will be determined
* lazily on first access of a Connection.
@@ -123,7 +123,7 @@ public class LazyConnectionDataSourceProxy extends DelegatingDataSource {
/**
* Set the default transaction isolation level to expose when no target Connection
- * has been fetched yet (-> actual JDBC Connection default not known yet).
+ * has been fetched yet (when the actual JDBC Connection default is not known yet).
* This property accepts the int constant value (e.g. 8) as defined in the
* {@link java.sql.Connection} interface; it is mainly intended for programmatic
* use. Consider using the "defaultTransactionIsolationName" property for setting
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/UserCredentialsDataSourceAdapter.java b/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/UserCredentialsDataSourceAdapter.java
index 8d095750235..659c11fae8d 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/UserCredentialsDataSourceAdapter.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/UserCredentialsDataSourceAdapter.java
@@ -48,7 +48,7 @@ import org.springframework.util.StringUtils;
* <property name="targetDataSource" ref="myTargetDataSource"/>
* <property name="username" value="myusername"/>
* <property name="password" value="mypassword"/>
- * </bean>
+ * </bean>
*
* If the "username" is empty, this proxy will simply delegate to the
* standard {@code getConnection()} method of the target DataSource.
diff --git a/spring-jms/src/main/java/org/springframework/jms/connection/UserCredentialsConnectionFactoryAdapter.java b/spring-jms/src/main/java/org/springframework/jms/connection/UserCredentialsConnectionFactoryAdapter.java
index ef8dd8585fa..d781e30997a 100644
--- a/spring-jms/src/main/java/org/springframework/jms/connection/UserCredentialsConnectionFactoryAdapter.java
+++ b/spring-jms/src/main/java/org/springframework/jms/connection/UserCredentialsConnectionFactoryAdapter.java
@@ -55,7 +55,7 @@ import org.springframework.util.StringUtils;
* <property name="targetConnectionFactory" ref="myTargetConnectionFactory"/>
* <property name="username" value="myusername"/>
* <property name="password" value="mypassword"/>
- * </bean>
+ * </bean>
*
* If the "username" is empty, this proxy will simply delegate to the standard
* {@code createConnection()} method of the target ConnectionFactory.
diff --git a/spring-jms/src/main/java/org/springframework/jms/listener/endpoint/DefaultJmsActivationSpecFactory.java b/spring-jms/src/main/java/org/springframework/jms/listener/endpoint/DefaultJmsActivationSpecFactory.java
index 810d848138c..751fc355d69 100644
--- a/spring-jms/src/main/java/org/springframework/jms/listener/endpoint/DefaultJmsActivationSpecFactory.java
+++ b/spring-jms/src/main/java/org/springframework/jms/listener/endpoint/DefaultJmsActivationSpecFactory.java
@@ -32,7 +32,7 @@ import org.springframework.beans.BeanWrapper;
* An ActivationSpec factory is effectively dependent on the concrete
* JMS provider, e.g. on ActiveMQ. This default implementation simply
* guesses the ActivationSpec class name from the provider's class name
- * ("ActiveMQResourceAdapter" -> "ActiveMQActivationSpec" in the same package,
+ * ("ActiveMQResourceAdapter" → "ActiveMQActivationSpec" in the same package,
* or "ActivationSpecImpl" in the same package as the ResourceAdapter class),
* and populates the ActivationSpec properties as suggested by the
* JCA 1.5 specification (Appendix B). Specify the 'activationSpecClass'
@@ -67,7 +67,7 @@ public class DefaultJmsActivationSpecFactory extends StandardJmsActivationSpecFa
/**
* This implementation guesses the ActivationSpec class name from the
- * provider's class name: e.g. "ActiveMQResourceAdapter" ->
+ * provider's class name: e.g. "ActiveMQResourceAdapter" →
* "ActiveMQActivationSpec" in the same package, or a class named
* "ActivationSpecImpl" in the same package as the ResourceAdapter class.
*/
diff --git a/spring-jms/src/main/java/org/springframework/jms/listener/endpoint/JmsMessageEndpointManager.java b/spring-jms/src/main/java/org/springframework/jms/listener/endpoint/JmsMessageEndpointManager.java
index 72a4f99fab3..7223d747256 100644
--- a/spring-jms/src/main/java/org/springframework/jms/listener/endpoint/JmsMessageEndpointManager.java
+++ b/spring-jms/src/main/java/org/springframework/jms/listener/endpoint/JmsMessageEndpointManager.java
@@ -104,7 +104,7 @@ public class JmsMessageEndpointManager extends GenericMessageEndpointManager
* {@link #setActivationSpecConfig JmsActivationSpecConfig} objects.
* This factory is dependent on the concrete JMS provider, e.g. on ActiveMQ.
* The default implementation simply guesses the ActivationSpec class name
- * from the provider's class name (e.g. "ActiveMQResourceAdapter" ->
+ * from the provider's class name (e.g. "ActiveMQResourceAdapter" →
* "ActiveMQActivationSpec" in the same package), and populates the
* ActivationSpec properties as suggested by the JCA 1.5 specification
* (plus a couple of autodetected vendor-specific properties).
diff --git a/spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/reactive/MessageMappingMessageHandler.java b/spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/reactive/MessageMappingMessageHandler.java
index 0804bff2d0a..86bd2720850 100644
--- a/spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/reactive/MessageMappingMessageHandler.java
+++ b/spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/reactive/MessageMappingMessageHandler.java
@@ -200,7 +200,7 @@ public class MessageMappingMessageHandler extends AbstractMethodMessageHandler The count of the given expectation is incremented, then it is
- * either stored if remainingCount > 0 or removed otherwise.
+ * either stored if remainingCount > 0 or removed otherwise.
*/
public void update(RequestExpectation expectation) {
expectation.incrementAndValidate();
diff --git a/spring-test/src/main/java/org/springframework/test/web/reactive/server/FluxExchangeResult.java b/spring-test/src/main/java/org/springframework/test/web/reactive/server/FluxExchangeResult.java
index a8d48e9e9d1..f15528a1024 100644
--- a/spring-test/src/main/java/org/springframework/test/web/reactive/server/FluxExchangeResult.java
+++ b/spring-test/src/main/java/org/springframework/test/web/reactive/server/FluxExchangeResult.java
@@ -80,7 +80,7 @@ public class FluxExchangeResult Note that the configured consumer does not apply to responses
* decoded to {@code Flux Note: Do not use this for a
- * {@code "multipart/form-data"} requests as per
- * RFC 7578, Section 4.2
- * and also RFC 5987 itself mentions it does not apply to multipart
- * requests.
+ * {@code "multipart/form-data"} request since
+ * RFC 7578, Section 4.2
+ * and also RFC 5987 mention it does not apply to multipart requests.
*/
Builder filename(String filename, Charset charset);
diff --git a/spring-web/src/main/java/org/springframework/http/HttpStatus.java b/spring-web/src/main/java/org/springframework/http/HttpStatus.java
index f6a9911d1ab..486b524df91 100644
--- a/spring-web/src/main/java/org/springframework/http/HttpStatus.java
+++ b/spring-web/src/main/java/org/springframework/http/HttpStatus.java
@@ -285,21 +285,21 @@ public enum HttpStatus {
I_AM_A_TEAPOT(418, Series.CLIENT_ERROR, "I'm a teapot"),
/**
* @deprecated See
- *
+ *
* WebDAV Draft Changes
*/
@Deprecated
INSUFFICIENT_SPACE_ON_RESOURCE(419, Series.CLIENT_ERROR, "Insufficient Space On Resource"),
/**
* @deprecated See
- *
+ *
* WebDAV Draft Changes
*/
@Deprecated
METHOD_FAILURE(420, Series.CLIENT_ERROR, "Method Failure"),
/**
* @deprecated
- * See
+ * See
* WebDAV Draft Changes
*/
@Deprecated
diff --git a/spring-web/src/main/java/org/springframework/http/client/ClientHttpRequestInterceptor.java b/spring-web/src/main/java/org/springframework/http/client/ClientHttpRequestInterceptor.java
index 96686987864..82e6f7be71c 100644
--- a/spring-web/src/main/java/org/springframework/http/client/ClientHttpRequestInterceptor.java
+++ b/spring-web/src/main/java/org/springframework/http/client/ClientHttpRequestInterceptor.java
@@ -42,15 +42,15 @@ public interface ClientHttpRequestInterceptor {
* request and response to the next entity in the chain.
* A typical implementation of this method would follow the following pattern:
* Given the following XML:
*
* A usage example:
*
* >NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
+ * NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
* variant of ROME, version 1.5. Please upgrade your build dependency.
*
* By default, this converter reads and writes the media type ({@code application/atom+xml}).
diff --git a/spring-web/src/main/java/org/springframework/http/converter/feed/RssChannelHttpMessageConverter.java b/spring-web/src/main/java/org/springframework/http/converter/feed/RssChannelHttpMessageConverter.java
index 0ecf87a703e..28a5f19e788 100644
--- a/spring-web/src/main/java/org/springframework/http/converter/feed/RssChannelHttpMessageConverter.java
+++ b/spring-web/src/main/java/org/springframework/http/converter/feed/RssChannelHttpMessageConverter.java
@@ -25,7 +25,7 @@ import org.springframework.http.MediaType;
* that can read and write RSS feeds. Specifically, this converter can handle {@link Channel}
* objects from the ROME project.
*
- * >NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
+ * NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
* variant of ROME, version 1.5. Please upgrade your build dependency.
*
* By default, this converter reads and writes the media type ({@code application/rss+xml}).
diff --git a/spring-web/src/main/java/org/springframework/web/SpringServletContainerInitializer.java b/spring-web/src/main/java/org/springframework/web/SpringServletContainerInitializer.java
index 9b50031d97a..6ce5e8fa83f 100644
--- a/spring-web/src/main/java/org/springframework/web/SpringServletContainerInitializer.java
+++ b/spring-web/src/main/java/org/springframework/web/SpringServletContainerInitializer.java
@@ -61,8 +61,8 @@ import org.springframework.util.ReflectionUtils;
*
* Configure this resolver in your {@code faces-config.xml} file as follows:
*
* Configure this resolver in your {@code faces-config.xml} file as follows:
*
* Effectively this:
* Detects include request URL if called within a RequestDispatcher include.
- * E.g.: servlet mapping = "/*"; request URI = "/test/a" -> "/test/a".
- * E.g.: servlet mapping = "/"; request URI = "/test/a" -> "/test/a".
- * E.g.: servlet mapping = "/test/*"; request URI = "/test/a" -> "/a".
- * E.g.: servlet mapping = "/test"; request URI = "/test" -> "".
- * E.g.: servlet mapping = "/*.test"; request URI = "/a.test" -> "".
+ * E.g.: servlet mapping = "/*"; request URI = "/test/a" → "/test/a".
+ * E.g.: servlet mapping = "/"; request URI = "/test/a" → "/test/a".
+ * E.g.: servlet mapping = "/test/*"; request URI = "/test/a" → "/a".
+ * E.g.: servlet mapping = "/test"; request URI = "/test" → "".
+ * E.g.: servlet mapping = "/*.test"; request URI = "/a.test" → "".
* @param request current HTTP request
* @param pathWithinApp a precomputed path within the application
* @return the path within the servlet mapping, or ""
diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeFunction.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeFunction.java
index fddb3389c56..c5325284a64 100644
--- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeFunction.java
+++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeFunction.java
@@ -32,7 +32,7 @@ import reactor.core.publisher.Mono;
*
* Mono<String> bodyMono = exchangeFunction
* .exchange(request)
- * .flatMap(response -> response.bodyToMono(String.class));
+ * .flatMap(response -> response.bodyToMono(String.class));
* By default, if there are no matching status handlers, responses
- * with status codes >= 400 are mapped to
+ * with status codes >= 400 are mapped to
* {@link WebClientResponseException} which is created with
* {@link ClientResponse#createException()}.
* To suppress the treatment of a status code as an error and process
@@ -766,7 +766,7 @@ public interface WebClient {
* .retrieve()
* .bodyToMono(Account.class)
* .onErrorResume(WebClientResponseException.class,
- * ex -> ex.getRawStatusCode() == 404 ? Mono.empty() : Mono.error(ex));
+ * ex -> ex.getRawStatusCode() == 404 ? Mono.empty() : Mono.error(ex));
*
* @param statusPredicate to match responses with
* @param exceptionFunction to map the response to an error signal
diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java
index 64d1e3ed9b6..30157153d4a 100644
--- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java
+++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RouterFunctions.java
@@ -670,7 +670,7 @@ public abstract class RouterFunctions {
* Example: prefix="templates/", suffix=".ftl", viewname="test" ->
+ * Example: prefix="templates/", suffix=".ftl", viewname="test" →
* "templates/test.ftl"
*
* As a special feature, redirect URLs can be specified via the "redirect:"
diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/socket/WebSocketHandler.java b/spring-webflux/src/main/java/org/springframework/web/reactive/socket/WebSocketHandler.java
index 616931ebda3..0703dae330d 100644
--- a/spring-webflux/src/main/java/org/springframework/web/reactive/socket/WebSocketHandler.java
+++ b/spring-webflux/src/main/java/org/springframework/web/reactive/socket/WebSocketHandler.java
@@ -45,13 +45,13 @@ import reactor.core.publisher.Mono;
* public Mono<Void> handle(WebSocketSession session) {
*
* Flux<WebSocketMessage> output = session.receive()
- * .doOnNext(message -> {
+ * .doOnNext(message -> {
* // ...
* })
- * .concatMap(message -> {
+ * .concatMap(message -> {
* // ...
* })
- * .map(value -> session.textMessage("Echo " + value));
+ * .map(value -> session.textMessage("Echo " + value));
*
* return session.send(output);
* }
@@ -68,10 +68,10 @@ import reactor.core.publisher.Mono;
* public Mono<Void> handle(WebSocketSession session) {
*
* Mono<Void> input = session.receive()
- * .doOnNext(message -> {
+ * .doOnNext(message -> {
* // ...
* })
- * .concatMap(message -> {
+ * .concatMap(message -> {
* // ...
* })
* .then();
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java
index de87a28f478..ecbdac81819 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java
@@ -1266,7 +1266,7 @@ public class DispatcherServlet extends FrameworkServlet {
}
/**
- * No handler found -> set appropriate HTTP response status.
+ * No handler found → set appropriate HTTP response status.
* @param request current HTTP request
* @param response current HTTP response
* @throws Exception if preparing the response failed
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/ModelAndView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/ModelAndView.java
index 9dbb3af4aaf..b10775cf81c 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/ModelAndView.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/ModelAndView.java
@@ -303,7 +303,7 @@ public class ModelAndView {
/**
* Add all attributes contained in the provided Map to the model.
- * @param modelMap a Map of attributeName -> attributeValue pairs
+ * @param modelMap a Map of attributeName → attributeValue pairs
* @see ModelMap#addAllAttributes(Map)
* @see #getModelMap()
*/
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RouterFunctions.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RouterFunctions.java
index 745bce13ae4..95a59373f4b 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RouterFunctions.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RouterFunctions.java
@@ -582,7 +582,7 @@ public abstract class RouterFunctions {
* For example:
* or, to set both the id and event type:
* For example:
* or, to set both the id and event type:
* This exception resolver is enabled by default in the common Spring
* {@link org.springframework.web.servlet.DispatcherServlet}.
*
- *
* For more specific needs, a custom {@link org.springframework.http.CacheControl}
* should be used.
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/InternalResourceView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/InternalResourceView.java
index f1d050135a6..23fe28d1f39 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/InternalResourceView.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/InternalResourceView.java
@@ -51,7 +51,7 @@ import org.springframework.web.util.WebUtils;
* </bean>
*
* Every view name returned from a handler will be translated to a JSP
- * resource (for example: "myView" -> "/WEB-INF/jsp/myView.jsp"), using
+ * resource (for example: "myView" → "/WEB-INF/jsp/myView.jsp"), using
* this view class by default.
*
* @author Rod Johnson
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/JstlView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/JstlView.java
index 780f6f2b923..01535be6486 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/JstlView.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/JstlView.java
@@ -47,7 +47,7 @@ import org.springframework.web.servlet.support.RequestContext;
* </bean>
*
* Every view name returned from a handler will be translated to a JSP
- * resource (for example: "myView" -> "/WEB-INF/jsp/myView.jsp"), using
+ * resource (for example: "myView" → "/WEB-INF/jsp/myView.jsp"), using
* this view class to enable explicit JSTL support.
*
* The specified MessageSource loads messages from "messages.properties" etc
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java
index d25a6ac05fa..ac1361aac47 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java
@@ -49,7 +49,7 @@ import org.springframework.web.servlet.View;
* specified prefix and/or suffix. Exporting an attribute that holds the
* RequestContext to all views is explicitly supported.
*
- * Example: prefix="/WEB-INF/jsp/", suffix=".jsp", viewname="test" ->
+ * Example: prefix="/WEB-INF/jsp/", suffix=".jsp", viewname="test" →
* "/WEB-INF/jsp/test.jsp"
*
* As a special feature, redirect URLs can be specified via the "redirect:"
@@ -342,14 +342,16 @@ public class UrlBasedViewResolver extends AbstractCachingViewResolver implements
}
/**
- * Specify whether views resolved by this resolver should add path variables to the model or not.
- * >The default setting is to let each View decide (see {@link AbstractView#setExposePathVariables}.
- * However, you can use this property to override that.
+ * Specify whether views resolved by this resolver should add path
+ * variables to the model or not.
+ * The default setting is to let each View decide
+ * (see {@link AbstractView#setExposePathVariables}). However, you
+ * can use this property to override that.
* @param exposePathVariables
* >NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
+ * NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
* variant of ROME, version 1.5. Please upgrade your build dependency.
*
* Application-specific view classes will extend this class.
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractFeedView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractFeedView.java
index f976446a1b6..3fbfbc37fc9 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractFeedView.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractFeedView.java
@@ -32,7 +32,7 @@ import org.springframework.web.servlet.view.AbstractView;
* Abstract base class for Atom and RSS Feed views, using the
* ROME package.
*
- * >NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
+ * NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
* variant of ROME, version 1.5. Please upgrade your build dependency.
*
* Application-specific view classes will typically extend from either
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractRssFeedView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractRssFeedView.java
index aa22a876892..62610f5550f 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractRssFeedView.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractRssFeedView.java
@@ -30,7 +30,7 @@ import org.springframework.http.MediaType;
* Abstract superclass for RSS Feed views, using the
* ROME package.
*
- * >NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
+ * NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
* variant of ROME, version 1.5. Please upgrade your build dependency.
*
* Application-specific view classes will extend this class.
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/freemarker/FreeMarkerConfigurer.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/freemarker/FreeMarkerConfigurer.java
index 9caac97a339..b1604ed1d6c 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/freemarker/FreeMarkerConfigurer.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/freemarker/FreeMarkerConfigurer.java
@@ -38,7 +38,7 @@ import org.springframework.util.Assert;
*
*
* DatabaseClient client = …;
- * client.sql("SELECT book_id FROM book").filter(statement -> statement.fetchSize(100))
+ * client.sql("SELECT book_id FROM book").filter(statement -> statement.fetchSize(100))
*
* @param filterFunction the filter to be added to the chain
*/
@@ -205,7 +205,7 @@ public interface DatabaseClient extends ConnectionAccessor {
* before it is executed. For example:
*
* DatabaseClient client = …;
- * client.sql("SELECT book_id FROM book").filter((statement, next) -> next.execute(statement.fetchSize(100)))
+ * client.sql("SELECT book_id FROM book").filter((statement, next) -> next.execute(statement.fetchSize(100)))
*
* @param filter the filter to be added to the chain
*/
diff --git a/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/ExecuteFunction.java b/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/ExecuteFunction.java
index c60888f6ebf..a0bfb22d8a2 100644
--- a/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/ExecuteFunction.java
+++ b/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/ExecuteFunction.java
@@ -36,7 +36,7 @@ import org.reactivestreams.Publisher;
* For example:
*
* DatabaseClient.builder()
- * .executeFunction(statement -> statement.execute())
+ * .executeFunction(statement -> statement.execute())
* .build();
*
*
diff --git a/spring-test/src/main/java/org/springframework/test/web/client/AbstractRequestExpectationManager.java b/spring-test/src/main/java/org/springframework/test/web/client/AbstractRequestExpectationManager.java
index 10e1f39b3a5..bd57ec72fcd 100644
--- a/spring-test/src/main/java/org/springframework/test/web/client/AbstractRequestExpectationManager.java
+++ b/spring-test/src/main/java/org/springframework/test/web/client/AbstractRequestExpectationManager.java
@@ -256,7 +256,7 @@ public abstract class AbstractRequestExpectationManager implements RequestExpect
/**
* Invoke this for an expectation that has been matched.
*
* client.get().uri("/accounts/1")
* .exchange()
- * .expectBody(Person.class).consumeWith(exchangeResult -> ... ));
+ * .expectBody(Person.class).consumeWith(exchangeResult -> ... ));
*
* client.get().uri("/accounts")
* .exchange()
- * .expectBodyList(Person.class).consumeWith(exchangeResult -> ... ));
+ * .expectBodyList(Person.class).consumeWith(exchangeResult -> ... ));
*
* client.get().uri("/accounts/1")
* .exchange()
- * .expectBody().consumeWith(exchangeResult -> ... ));
+ * .expectBody().consumeWith(exchangeResult -> ... ));
*
*
* webTestClient.get().uri("/hello").exchange()
* .expectAll(
- * responseSpec -> responseSpec.expectStatus().isOk(),
- * responseSpec -> responseSpec.expectBody(String.class).isEqualTo("Hello, World!")
+ * responseSpec -> responseSpec.expectStatus().isOk(),
+ * responseSpec -> responseSpec.expectBody(String.class).isEqualTo("Hello, World!")
* );
*
* @param consumers the list of {@code ResponseSpec} consumers
diff --git a/spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionProxyFactoryBean.java b/spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionProxyFactoryBean.java
index 56e5cef3d81..774107b46ff 100644
--- a/spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionProxyFactoryBean.java
+++ b/spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionProxyFactoryBean.java
@@ -79,7 +79,7 @@ import org.springframework.transaction.PlatformTransactionManager;
* deriving concrete child bean definitions for specific target objects.
* This reduces the per-bean definition effort to a minimum.
*
- *
+ *
*
* @author Juergen Hoeller
* @since 2.5
diff --git a/spring-web/src/main/java/org/springframework/web/server/ServerWebExchange.java b/spring-web/src/main/java/org/springframework/web/server/ServerWebExchange.java
index d8cef567578..0062325b64e 100644
--- a/spring-web/src/main/java/org/springframework/web/server/ServerWebExchange.java
+++ b/spring-web/src/main/java/org/springframework/web/server/ServerWebExchange.java
@@ -248,7 +248,7 @@ public interface ServerWebExchange {
* Configure a consumer to modify the current request using a builder.
*
* <bean id="baseTransactionProxy" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
* abstract="true">
* <property name="transactionManager" ref="transactionManager"/>
diff --git a/spring-web/src/main/java/org/springframework/http/ContentDisposition.java b/spring-web/src/main/java/org/springframework/http/ContentDisposition.java
index 32c718814b2..1d5254e336a 100644
--- a/spring-web/src/main/java/org/springframework/http/ContentDisposition.java
+++ b/spring-web/src/main/java/org/springframework/http/ContentDisposition.java
@@ -576,14 +576,13 @@ public final class ContentDisposition {
Builder filename(String filename);
/**
- * Set the value of the {@literal filename*} that will be encoded as
- * defined in the RFC 5987. Only the US-ASCII, UTF-8 and ISO-8859-1
+ * Set the value of the {@code filename} that will be encoded as
+ * defined in RFC 5987. Only the US-ASCII, UTF-8, and ISO-8859-1
* charsets are supported.
*
*
* @author Juergen Hoeller
* @since 2.5
diff --git a/spring-web/src/main/java/org/springframework/web/jsf/el/WebApplicationContextFacesELResolver.java b/spring-web/src/main/java/org/springframework/web/jsf/el/WebApplicationContextFacesELResolver.java
index 6a072053fb1..86babdf0a48 100644
--- a/spring-web/src/main/java/org/springframework/web/jsf/el/WebApplicationContextFacesELResolver.java
+++ b/spring-web/src/main/java/org/springframework/web/jsf/el/WebApplicationContextFacesELResolver.java
@@ -44,10 +44,10 @@ import org.springframework.web.jsf.FacesContextUtils;
*
- *
+ *
*
- * <root>
+ * <root>
* <child>foo</child>
* <child>bar</child>
* </root>
diff --git a/spring-web/src/main/java/org/springframework/http/converter/ObjectToStringHttpMessageConverter.java b/spring-web/src/main/java/org/springframework/http/converter/ObjectToStringHttpMessageConverter.java
index d35f7f4d26d..6f6ac69bd45 100644
--- a/spring-web/src/main/java/org/springframework/http/converter/ObjectToStringHttpMessageConverter.java
+++ b/spring-web/src/main/java/org/springframework/http/converter/ObjectToStringHttpMessageConverter.java
@@ -38,11 +38,11 @@ import org.springframework.util.Assert;
*
*
* with "mySpringManagedBusinessObject" defined as Spring bean in
* applicationContext.xml:
*
*
- * <bean class="org.springframework.http.converter.ObjectToStringHttpMessageConverter">
- * <constructor-arg>
- * <bean class="org.springframework.context.support.ConversionServiceFactoryBean"/>
- * </constructor-arg>
- * </bean>
+ * <bean class="org.springframework.http.converter.ObjectToStringHttpMessageConverter">
+ * <constructor-arg>
+ * <bean class="org.springframework.context.support.ConversionServiceFactoryBean"/>
+ * </constructor-arg>
+ * </bean>
*
*
* @author Dmitry Katsubo
diff --git a/spring-web/src/main/java/org/springframework/http/converter/feed/AtomFeedHttpMessageConverter.java b/spring-web/src/main/java/org/springframework/http/converter/feed/AtomFeedHttpMessageConverter.java
index 88a074752a4..ae0a5fdb0bd 100644
--- a/spring-web/src/main/java/org/springframework/http/converter/feed/AtomFeedHttpMessageConverter.java
+++ b/spring-web/src/main/java/org/springframework/http/converter/feed/AtomFeedHttpMessageConverter.java
@@ -25,7 +25,7 @@ import org.springframework.http.MediaType;
* that can read and write Atom feeds. Specifically, this converter can handle {@link Feed}
* objects from the ROME project.
*
- *
* <absolute-ordering>
- * <name>some_web_fragment</name>
- * <name>spring_web</name>
+ * <name>some_web_fragment</name>
+ * <name>spring_web</name>
* </absolute-ordering>
*
*
diff --git a/spring-web/src/main/java/org/springframework/web/WebApplicationInitializer.java b/spring-web/src/main/java/org/springframework/web/WebApplicationInitializer.java
index ef326acbe8d..736e5031a64 100644
--- a/spring-web/src/main/java/org/springframework/web/WebApplicationInitializer.java
+++ b/spring-web/src/main/java/org/springframework/web/WebApplicationInitializer.java
@@ -36,15 +36,15 @@ import jakarta.servlet.ServletException;
* follows:
*
* <servlet>
- * <servlet-name>dispatcher</servlet-name>
+ * <servlet-name>dispatcher</servlet-name>
* <servlet-class>
* org.springframework.web.servlet.DispatcherServlet
* </servlet-class>
- * <init-param>
- * <param-name>contextConfigLocation</param-name>
- * <param-value>/WEB-INF/spring/dispatcher-config.xml</param-value>
+ * <init-param>
+ * <param-name>contextConfigLocation</param-name>
+ * <param-value>/WEB-INF/spring/dispatcher-config.xml</param-value>
* </init-param>
- * <load-on-startup>1</load-on-startup>
+ * <load-on-startup>1</load-on-startup>
* </servlet>
*
* <servlet-mapping>
diff --git a/spring-web/src/main/java/org/springframework/web/jsf/el/SpringBeanFacesELResolver.java b/spring-web/src/main/java/org/springframework/web/jsf/el/SpringBeanFacesELResolver.java
index e30e7e7a730..81dc5b9c69b 100644
--- a/spring-web/src/main/java/org/springframework/web/jsf/el/SpringBeanFacesELResolver.java
+++ b/spring-web/src/main/java/org/springframework/web/jsf/el/SpringBeanFacesELResolver.java
@@ -36,33 +36,33 @@ import org.springframework.web.jsf.FacesContextUtils;
*
*
* All your JSF expressions can then implicitly refer to the names of
* Spring-managed service layer beans, for example in property values of
* JSF-managed beans:
*
*
- * <application>
+ * <application>
* ...
- * <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
- * </application>
+ * <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
+ * </application>
- * <managed-bean>
- * <managed-bean-name>myJsfManagedBean</managed-bean-name>
- * <managed-bean-class>example.MyJsfManagedBean</managed-bean-class>
- * <managed-bean-scope>session</managed-bean-scope>
- * <managed-property>
- * <property-name>mySpringManagedBusinessObject</property-name>
- * <value>#{mySpringManagedBusinessObject}</value>
- * </managed-property>
- * </managed-bean>
+ * <managed-bean>
+ * <managed-bean-name>myJsfManagedBean</managed-bean-name>
+ * <managed-bean-class>example.MyJsfManagedBean</managed-bean-class>
+ * <managed-bean-scope>session</managed-bean-scope>
+ * <managed-property>
+ * <property-name>mySpringManagedBusinessObject</property-name>
+ * <value>#{mySpringManagedBusinessObject}</value>
+ * </managed-property>
+ * </managed-bean>
- * <bean id="mySpringManagedBusinessObject" class="example.MySpringManagedBusinessObject">
+ * <bean id="mySpringManagedBusinessObject" class="example.MySpringManagedBusinessObject">
* ...
- * </bean>
+ * </bean>
- * <application>
+ * <application>
* ...
- * <el-resolver>org.springframework.web.jsf.el.WebApplicationContextFacesELResolver</el-resolver>
- * </application>
+ * <el-resolver>org.springframework.web.jsf.el.WebApplicationContextFacesELResolver</el-resolver>
+ * </application>
- * exchange.mutate().request(builder-> builder.method(HttpMethod.PUT));
+ * exchange.mutate().request(builder -> builder.method(HttpMethod.PUT));
*
* // vs...
*
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 a17335391a3..57752b8b88f 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
@@ -289,11 +289,11 @@ public class UrlPathHelper {
* i.e. the part of the request's URL beyond the part that called the servlet,
* or "" if the whole URL has been used to identify the servlet.
*
*
* @author Arjen Poutsma
diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java
index 801609d68fb..4d929888bde 100644
--- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java
+++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java
@@ -522,7 +522,7 @@ public interface WebClient {
* Mono<Object> entityMono = client.get()
* .uri("/persons/1")
* .accept(MediaType.APPLICATION_JSON)
- * .exchangeToMono(response -> {
+ * .exchangeToMono(response -> {
* if (response.statusCode().equals(HttpStatus.OK)) {
* return response.bodyToMono(Person.class);
* }
@@ -554,7 +554,7 @@ public interface WebClient {
* Mono<Object> entityMono = client.get()
* .uri("/persons")
* .accept(MediaType.APPLICATION_JSON)
- * .exchangeToFlux(response -> {
+ * .exchangeToFlux(response -> {
* if (response.statusCode().equals(HttpStatus.OK)) {
* return response.bodyToFlux(Person.class);
* }
@@ -751,7 +751,7 @@ public interface WebClient {
* Provide a function to map specific error status codes to an error
* signal to be propagated downstream instead of the response.
*
* RouterFunction<ServerResponse> nestedRoute =
* RouterFunctions.route()
- * .nest(RequestPredicates.path("/user"), () ->
+ * .nest(RequestPredicates.path("/user"), () ->
* RouterFunctions.route()
* .GET(this::listUsers)
* .POST(this::createUser)
@@ -695,7 +695,7 @@ public abstract class RouterFunctions {
*
* RouterFunction<ServerResponse> nestedRoute =
* RouterFunctions.route()
- * .nest(RequestPredicates.path("/user"), builder ->
+ * .nest(RequestPredicates.path("/user"), builder ->
* builder.GET(this::listUsers)
* .POST(this::createUser))
* .build();
@@ -740,7 +740,7 @@ public abstract class RouterFunctions {
*
* @param exceptionType the type of exception to filter
diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java
index 5376269f241..5b44e5a4564 100644
--- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java
+++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java
@@ -310,7 +310,7 @@ public interface ServerRequest {
* public Mono<ServerResponse> myHandleMethod(ServerRequest request) {
* Instant lastModified = // application-specific calculation
* return request.checkNotModified(lastModified)
- * .switchIfEmpty(Mono.defer(() -> {
+ * .switchIfEmpty(Mono.defer(() -> {
* // further request processing, actually building content
* return ServerResponse.ok().body(...);
* }));
@@ -344,7 +344,7 @@ public interface ServerRequest {
* public Mono<ServerResponse> myHandleMethod(ServerRequest request) {
* String eTag = // application-specific calculation
* return request.checkNotModified(eTag)
- * .switchIfEmpty(Mono.defer(() -> {
+ * .switchIfEmpty(Mono.defer(() -> {
* // further request processing, actually building content
* return ServerResponse.ok().body(...);
* }));
@@ -381,7 +381,7 @@ public interface ServerRequest {
* Instant lastModified = // application-specific calculation
* String eTag = // application-specific calculation
* return request.checkNotModified(lastModified, eTag)
- * .switchIfEmpty(Mono.defer(() -> {
+ * .switchIfEmpty(Mono.defer(() -> {
* // further request processing, actually building content
* return ServerResponse.ok().body(...);
* }));
diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/UrlBasedViewResolver.java b/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/UrlBasedViewResolver.java
index 0a31cb5aaf3..fd46f78331f 100644
--- a/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/UrlBasedViewResolver.java
+++ b/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/UrlBasedViewResolver.java
@@ -45,7 +45,7 @@ import org.springframework.util.PatternMatchUtils;
* specified prefix and/or suffix. Exporting an attribute that holds the
* RequestContext to all views is explicitly supported.
*
- *
* RouterFunction<ServerResponse> nestedRoute =
* RouterFunctions.route()
- * .path("/user", builder ->
+ * .path("/user", builder ->
* builder.GET(this::listUsers)
* .POST(this::createUser))
* .build();
@@ -762,7 +762,7 @@ public abstract class RouterFunctions {
* RouterFunction<ServerResponse> filteredRoute =
* RouterFunctions.route()
* .GET("/user", this::listUsers)
- * .filter((request, next) -> {
+ * .filter((request, next) -> {
* // check for authentication headers
* if (isAuthenticated(request)) {
* return next.handle(request);
@@ -788,7 +788,7 @@ public abstract class RouterFunctions {
* RouterFunction<ServerResponse> filteredRoute =
* RouterFunctions.route()
* .GET("/user", this::listUsers)
- * .before(request -> {
+ * .before(request -> {
* log(request);
* return request;
* })
@@ -809,7 +809,7 @@ public abstract class RouterFunctions {
* RouterFunction<ServerResponse> filteredRoute =
* RouterFunctions.route()
* .GET("/user", this::listUsers)
- * .after((request, response) -> {
+ * .after((request, response) -> {
* log(response);
* return response;
* })
@@ -829,8 +829,8 @@ public abstract class RouterFunctions {
* RouterFunction<ServerResponse> filteredRoute =
* RouterFunctions.route()
* .GET("/user", this::listUsers)
- * .onError(e -> e instanceof IllegalStateException,
- * (e, request) -> ServerResponse.status(HttpStatus.INTERNAL_SERVER_ERROR).build())
+ * .onError(e -> e instanceof IllegalStateException,
+ * (e, request) -> ServerResponse.status(HttpStatus.INTERNAL_SERVER_ERROR).build())
* .build();
*
* @param predicate the type of exception to filter
@@ -850,7 +850,7 @@ public abstract class RouterFunctions {
* RouterFunctions.route()
* .GET("/user", this::listUsers)
* .onError(IllegalStateException.class,
- * (e, request) -> ServerResponse.status(HttpStatus.INTERNAL_SERVER_ERROR).build())
+ * (e, request) -> ServerResponse.status(HttpStatus.INTERNAL_SERVER_ERROR).build())
* .build();
*
* RouterFunction<ServerResponse> nestedRoute =
* RouterFunctions.route()
- * .nest(RequestPredicates.path("/user"), () ->
+ * .nest(RequestPredicates.path("/user"), () ->
* RouterFunctions.route()
* .GET(this::listUsers)
* .POST(this::createUser)
@@ -607,7 +607,7 @@ public abstract class RouterFunctions {
*
* RouterFunction<ServerResponse> nestedRoute =
* RouterFunctions.route()
- * .nest(RequestPredicates.path("/user"), builder ->
+ * .nest(RequestPredicates.path("/user"), builder ->
* builder.GET(this::listUsers)
* .POST(this::createUser))
* .build();
@@ -652,7 +652,7 @@ public abstract class RouterFunctions {
*
* @param exceptionType the type of exception to filter
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerRequest.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerRequest.java
index cdb9b0f471a..741c4190f18 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerRequest.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerRequest.java
@@ -259,7 +259,7 @@ public interface ServerRequest {
* public ServerResponse myHandleMethod(ServerRequest request) {
* Instant lastModified = // application-specific calculation
* return request.checkNotModified(lastModified)
- * .orElseGet(() -> {
+ * .orElseGet(() -> {
* // further request processing, actually building content
* return ServerResponse.ok().body(...);
* });
@@ -293,7 +293,7 @@ public interface ServerRequest {
* public ServerResponse myHandleMethod(ServerRequest request) {
* String eTag = // application-specific calculation
* return request.checkNotModified(eTag)
- * .orElseGet(() -> {
+ * .orElseGet(() -> {
* // further request processing, actually building content
* return ServerResponse.ok().body(...);
* });
@@ -330,7 +330,7 @@ public interface ServerRequest {
* Instant lastModified = // application-specific calculation
* String eTag = // application-specific calculation
* return request.checkNotModified(lastModified, eTag)
- * .orElseGet(() -> {
+ * .orElseGet(() -> {
* // further request processing, actually building content
* return ServerResponse.ok().body(...);
* });
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerResponse.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerResponse.java
index dc6cf43d28b..6d27928cb73 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerResponse.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/ServerResponse.java
@@ -266,14 +266,14 @@ public interface ServerResponse {
*
* RouterFunction<ServerResponse> nestedRoute =
* RouterFunctions.route()
- * .path("/user", builder ->
+ * .path("/user", builder ->
* builder.GET(this::listUsers)
* .POST(this::createUser))
* .build();
@@ -674,7 +674,7 @@ public abstract class RouterFunctions {
* RouterFunction<ServerResponse> filteredRoute =
* RouterFunctions.route()
* .GET("/user", this::listUsers)
- * .filter((request, next) -> {
+ * .filter((request, next) -> {
* // check for authentication headers
* if (isAuthenticated(request)) {
* return next.handle(request);
@@ -700,7 +700,7 @@ public abstract class RouterFunctions {
* RouterFunction<ServerResponse> filteredRoute =
* RouterFunctions.route()
* .GET("/user", this::listUsers)
- * .before(request -> {
+ * .before(request -> {
* log(request);
* return request;
* })
@@ -721,7 +721,7 @@ public abstract class RouterFunctions {
* RouterFunction<ServerResponse> filteredRoute =
* RouterFunctions.route()
* .GET("/user", this::listUsers)
- * .after((request, response) -> {
+ * .after((request, response) -> {
* log(response);
* return response;
* })
@@ -741,8 +741,8 @@ public abstract class RouterFunctions {
* RouterFunction<ServerResponse> filteredRoute =
* RouterFunctions.route()
* .GET("/user", this::listUsers)
- * .onError(e -> e instanceof IllegalStateException,
- * (e, request) -> ServerResponse.status(HttpStatus.INTERNAL_SERVER_ERROR).build())
+ * .onError(e -> e instanceof IllegalStateException,
+ * (e, request) -> ServerResponse.status(HttpStatus.INTERNAL_SERVER_ERROR).build())
* .build();
*
* @param predicate the type of exception to filter
@@ -762,7 +762,7 @@ public abstract class RouterFunctions {
* RouterFunctions.route()
* .GET("/user", this::listUsers)
* .onError(IllegalStateException.class,
- * (e, request) -> ServerResponse.status(HttpStatus.INTERNAL_SERVER_ERROR).build())
+ * (e, request) -> ServerResponse.status(HttpStatus.INTERNAL_SERVER_ERROR).build())
* .build();
*
* public ServerResponse handleSse(ServerRequest request) {
- * return ServerResponse.sse(sse -> sse.send("Hello World!"));
+ * return ServerResponse.sse(sse -> sse.send("Hello World!"));
* }
*
*
*
* public ServerResponse handleSse(ServerRequest request) {
- * return ServerResponse.sse(sse -> sse
+ * return ServerResponse.sse(sse -> sse
* .id("42)
* .event("event")
* .send("Hello World!"));
@@ -295,14 +295,14 @@ public interface ServerResponse {
*
* public ServerResponse handleSse(ServerRequest request) {
- * return ServerResponse.sse(sse -> sse.send("Hello World!"));
+ * return ServerResponse.sse(sse -> sse.send("Hello World!"));
* }
*
*
*
* public ServerResponse handleSse(ServerRequest request) {
- * return ServerResponse.sse(sse -> sse
+ * return ServerResponse.sse(sse -> sse
* .id("42)
* .event("event")
* .send("Hello World!"));
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java
index ce787c69cf4..140214b29c9 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java
@@ -60,7 +60,6 @@ import org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver;
*
*
*
*
*
* @see AbstractView#setExposePathVariables
*/
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractAtomFeedView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractAtomFeedView.java
index 95a54eb0b4a..c690b898fef 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractAtomFeedView.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/feed/AbstractAtomFeedView.java
@@ -28,7 +28,7 @@ import jakarta.servlet.http.HttpServletResponse;
* Abstract superclass for Atom Feed views, using the
* ROME package.
*
- *
* <bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
- * <property name="templateLoaderPath"><value>/WEB-INF/freemarker/</value></property>
+ * <property name="templateLoaderPath"><value>/WEB-INF/freemarker/</value></property>
* </bean>
*
* This bean must be included in the application context of any application