From 983d019ee8f77f46befa99772b4eb9af3473593b Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Mon, 16 Oct 2017 16:55:52 -0500 Subject: [PATCH] Polish Add back explicit casting to ensure compatibility if overloaded methods are added. Issue: gh-4632 --- .../web/server/DefaultServerRedirectStrategyTests.java | 4 ++-- .../RedirectServerAuthenticationEntryPointTests.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webflux/src/test/java/org/springframework/security/web/server/DefaultServerRedirectStrategyTests.java b/webflux/src/test/java/org/springframework/security/web/server/DefaultServerRedirectStrategyTests.java index 4bf65714b2..f34fe14aa9 100644 --- a/webflux/src/test/java/org/springframework/security/web/server/DefaultServerRedirectStrategyTests.java +++ b/webflux/src/test/java/org/springframework/security/web/server/DefaultServerRedirectStrategyTests.java @@ -47,12 +47,12 @@ public class DefaultServerRedirectStrategyTests { @Test(expected = IllegalArgumentException.class) public void sendRedirectWhenLocationNullThenException() { - this.strategy.sendRedirect(this.exchange, null); + this.strategy.sendRedirect(this.exchange, (URI) null); } @Test(expected = IllegalArgumentException.class) public void sendRedirectWhenExchangeNullThenException() { - this.strategy.sendRedirect(null, this.location); + this.strategy.sendRedirect((ServerWebExchange) null, this.location); } @Test diff --git a/webflux/src/test/java/org/springframework/security/web/server/authentication/RedirectServerAuthenticationEntryPointTests.java b/webflux/src/test/java/org/springframework/security/web/server/authentication/RedirectServerAuthenticationEntryPointTests.java index a1f6e9e9aa..32d9e92e15 100644 --- a/webflux/src/test/java/org/springframework/security/web/server/authentication/RedirectServerAuthenticationEntryPointTests.java +++ b/webflux/src/test/java/org/springframework/security/web/server/authentication/RedirectServerAuthenticationEntryPointTests.java @@ -57,7 +57,7 @@ public class RedirectServerAuthenticationEntryPointTests { @Test(expected = IllegalArgumentException.class) public void constructorStringWhenNullLocationThenException() { - new RedirectServerAuthenticationEntryPoint(null); + new RedirectServerAuthenticationEntryPoint((String) null); } @Test