From 3dca70403db13a24a88e6145e6adcd34a200445f Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Sun, 6 Nov 2011 17:07:24 -0600 Subject: [PATCH] Suppress compiler warnings and minor javadoc fix for ProviderManager --- .../security/authentication/ProviderManager.java | 5 +++-- 1 file changed, 3 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 b2e19e6fc4..6a2732c1c6 100644 --- a/core/src/main/java/org/springframework/security/authentication/ProviderManager.java +++ b/core/src/main/java/org/springframework/security/authentication/ProviderManager.java @@ -203,6 +203,7 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar throw lastException; } + @SuppressWarnings("deprecation") private void prepareException(AuthenticationException ex, Authentication auth) { ex.setAuthentication(auth); @@ -273,7 +274,7 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar * @deprecated Use constructor injection */ @Deprecated - @SuppressWarnings("unchecked") + @SuppressWarnings({ "unchecked", "rawtypes" }) public void setProviders(List providers) { Assert.notNull(providers, "Providers list cannot be null"); for(Object currentObject : providers) { @@ -284,7 +285,7 @@ public class ProviderManager implements AuthenticationManager, MessageSourceAwar } /** - * If set to true, the {@code extraInformation} set on an {@code AuthenticationException will be cleared + * If set to true, the {@code extraInformation} set on an {@code AuthenticationException} will be cleared * before rethrowing it. This is useful for use with remoting protocols where the information shouldn't * be serialized to the client. Defaults to 'false'. *