diff --git a/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java b/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java
index 2d05560df9..c7e57ef4fa 100644
--- a/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java
+++ b/web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java
@@ -371,8 +371,8 @@ public class SwitchUserFilter extends GenericFilterBean implements ApplicationEv
/**
* Sets the authentication data access object.
- * @param userDetailsService The UserDetailsService which will be used to load
- * information for the user that is being switched to.
+ * @param userDetailsService The UserDetailsService which will be used to
+ * load information for the user that is being switched to.
*/
public void setUserDetailsService(UserDetailsService userDetailsService) {
this.userDetailsService = userDetailsService;
diff --git a/web/src/main/java/org/springframework/security/web/server/authentication/SwitchUserWebFilter.java b/web/src/main/java/org/springframework/security/web/server/authentication/SwitchUserWebFilter.java
index bdc632a03e..cbdd4e4b25 100644
--- a/web/src/main/java/org/springframework/security/web/server/authentication/SwitchUserWebFilter.java
+++ b/web/src/main/java/org/springframework/security/web/server/authentication/SwitchUserWebFilter.java
@@ -115,8 +115,8 @@ public class SwitchUserWebFilter implements WebFilter {
/**
* Creates a filter for the user context switching
- * @param userDetailsService The UserDetailsService which will be used to load
- * information for the user that is being switched to.
+ * @param userDetailsService The UserDetailsService which will be used to
+ * load information for the user that is being switched to.
* @param successHandler Used to define custom behaviour on a successful switch or
* exit user.
* @param failureHandler Used to define custom behaviour when a switch fails.
@@ -135,8 +135,8 @@ public class SwitchUserWebFilter implements WebFilter {
/**
* Creates a filter for the user context switching
- * @param userDetailsService The UserDetailsService which will be used to load
- * information for the user that is being switched to.
+ * @param userDetailsService The UserDetailsService which will be used to
+ * load information for the user that is being switched to.
* @param successTargetUrl Sets the URL to go to after a successful switch / exit user
* request
* @param failureTargetUrl The URL to which a user should be redirected if the switch