From 0e100be3332b854ba0b959c6cb9ecce6c5b93677 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 22 Jun 2017 13:31:21 -0500 Subject: [PATCH] Fix Groovy 2.5 Compile Errors Fixes gh-4415 --- .../provisioning/UserDetailsManagerConfigurerTests.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/src/test/groovy/org/springframework/security/config/annotation/provisioning/UserDetailsManagerConfigurerTests.groovy b/config/src/test/groovy/org/springframework/security/config/annotation/provisioning/UserDetailsManagerConfigurerTests.groovy index b2efb05093..bd38dcf3bd 100644 --- a/config/src/test/groovy/org/springframework/security/config/annotation/provisioning/UserDetailsManagerConfigurerTests.groovy +++ b/config/src/test/groovy/org/springframework/security/config/annotation/provisioning/UserDetailsManagerConfigurerTests.groovy @@ -33,7 +33,7 @@ class UserDetailsManagerConfigurerTests extends Specification { setup: InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([]) when: - UserDetails userDetails = new UserDetailsManagerConfigurer>(userDetailsManager) + UserDetails userDetails = new UserDetailsManagerConfigurer>(userDetailsManager) .withUser("user") .password("password") .roles("USER") @@ -57,7 +57,7 @@ class UserDetailsManagerConfigurerTests extends Specification { InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([]) SimpleGrantedAuthority authority = new SimpleGrantedAuthority("ROLE_USER") when: - UserDetails userDetails = new UserDetailsManagerConfigurer>(userDetailsManager) + UserDetails userDetails = new UserDetailsManagerConfigurer>(userDetailsManager) .withUser("user") .password("password") .authorities(authority) @@ -71,7 +71,7 @@ class UserDetailsManagerConfigurerTests extends Specification { InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([]) String authority = "ROLE_USER" when: - UserDetails userDetails = new UserDetailsManagerConfigurer>(userDetailsManager) + UserDetails userDetails = new UserDetailsManagerConfigurer>(userDetailsManager) .withUser("user") .password("password") .authorities(authority) @@ -86,7 +86,7 @@ class UserDetailsManagerConfigurerTests extends Specification { InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([]) SimpleGrantedAuthority authority = new SimpleGrantedAuthority("ROLE_USER") when: - UserDetails userDetails = new UserDetailsManagerConfigurer>(userDetailsManager) + UserDetails userDetails = new UserDetailsManagerConfigurer>(userDetailsManager) .withUser("user") .password("password") .authorities([authority])