From 3dc59686fab6285b2474f2c61f20b34dd4feed02 Mon Sep 17 00:00:00 2001 From: wangsong Date: Tue, 7 Jul 2020 07:55:57 +0800 Subject: [PATCH] Fix ProviderManager Javadoc typo Closes gh-8800 --- .../security/authentication/ProviderManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/springframework/security/authentication/ProviderManager.java b/core/src/main/java/org/springframework/security/authentication/ProviderManager.java index ee487d472b..a1e2869bc0 100644 --- a/core/src/main/java/org/springframework/security/authentication/ProviderManager.java +++ b/core/src/main/java/org/springframework/security/authentication/ProviderManager.java @@ -213,7 +213,7 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar ((CredentialsContainer) result).eraseCredentials(); } - // If the parent AuthenticationManager was attempted and successful than it will publish an AuthenticationSuccessEvent + // If the parent AuthenticationManager was attempted and successful then it will publish an AuthenticationSuccessEvent // This check prevents a duplicate AuthenticationSuccessEvent if the parent AuthenticationManager already published it if (parentResult == null) { eventPublisher.publishAuthenticationSuccess(result); @@ -230,7 +230,7 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar "No AuthenticationProvider found for {0}")); } - // If the parent AuthenticationManager was attempted and failed than it will publish an AbstractAuthenticationFailureEvent + // If the parent AuthenticationManager was attempted and failed then it will publish an AbstractAuthenticationFailureEvent // This check prevents a duplicate AbstractAuthenticationFailureEvent if the parent AuthenticationManager already published it if (parentException == null) { prepareException(lastException, authentication);