Use consistent "@" tag order in Javadoc
Ensure that Javadoc "@" tags appear in a consistent and well defined order. Issue gh-8945
This commit is contained in:
+1
-2
@@ -28,11 +28,10 @@ import org.springframework.security.core.context.SecurityContextHolder;
|
||||
* A {@link WithAnonymousUserSecurityContextFactory} that runs with an
|
||||
* {@link AnonymousAuthenticationToken}. .
|
||||
*
|
||||
* @see WithUserDetails
|
||||
* @author Rob Winch
|
||||
* @since 4.1
|
||||
* @see WithUserDetails
|
||||
*/
|
||||
|
||||
final class WithAnonymousUserSecurityContextFactory implements WithSecurityContextFactory<WithAnonymousUser> {
|
||||
|
||||
public SecurityContext createSecurityContext(WithAnonymousUser withUser) {
|
||||
|
||||
+2
-2
@@ -24,12 +24,12 @@ import org.springframework.security.test.context.TestSecurityContextHolder;
|
||||
* An API that works with WithUserTestExcecutionListener for creating a
|
||||
* {@link SecurityContext} that is populated in the {@link TestSecurityContextHolder}.
|
||||
*
|
||||
* @author Rob Winch
|
||||
* @param <A>
|
||||
* @author Rob Winch
|
||||
* @since 4.0
|
||||
* @see WithSecurityContext
|
||||
* @see WithMockUser
|
||||
* @see WithUserDetails
|
||||
* @since 4.0
|
||||
*/
|
||||
public interface WithSecurityContextFactory<A extends Annotation> {
|
||||
|
||||
|
||||
+1
-2
@@ -35,11 +35,10 @@ import org.springframework.util.StringUtils;
|
||||
* A {@link WithUserDetailsSecurityContextFactory} that works with {@link WithUserDetails}
|
||||
* .
|
||||
*
|
||||
* @see WithUserDetails
|
||||
* @author Rob Winch
|
||||
* @since 4.0
|
||||
* @see WithUserDetails
|
||||
*/
|
||||
|
||||
final class WithUserDetailsSecurityContextFactory implements WithSecurityContextFactory<WithUserDetails> {
|
||||
|
||||
private static final boolean reactorPresent = ClassUtils.isPresent("reactor.core.publisher.Mono",
|
||||
|
||||
+3
-3
@@ -947,9 +947,9 @@ public final class SecurityMockMvcRequestPostProcessors {
|
||||
* @param roles The roles to populate. Note that if the role does not start with
|
||||
* {@link #ROLE_PREFIX} it will automatically be prepended. This means by default
|
||||
* {@code roles("ROLE_USER")} and {@code roles("USER")} are equivalent.
|
||||
* @return the UserRequestPostProcessor for further customizations
|
||||
* @see #authorities(GrantedAuthority...)
|
||||
* @see #ROLE_PREFIX
|
||||
* @return the UserRequestPostProcessor for further customizations
|
||||
*/
|
||||
public UserRequestPostProcessor roles(String... roles) {
|
||||
List<GrantedAuthority> authorities = new ArrayList<>(roles.length);
|
||||
@@ -969,8 +969,8 @@ public final class SecurityMockMvcRequestPostProcessors {
|
||||
/**
|
||||
* Populates the user's {@link GrantedAuthority}'s. The default is ROLE_USER.
|
||||
* @param authorities
|
||||
* @see #roles(String...)
|
||||
* @return the UserRequestPostProcessor for further customizations
|
||||
* @see #roles(String...)
|
||||
*/
|
||||
public UserRequestPostProcessor authorities(GrantedAuthority... authorities) {
|
||||
return authorities(Arrays.asList(authorities));
|
||||
@@ -979,8 +979,8 @@ public final class SecurityMockMvcRequestPostProcessors {
|
||||
/**
|
||||
* Populates the user's {@link GrantedAuthority}'s. The default is ROLE_USER.
|
||||
* @param authorities
|
||||
* @see #roles(String...)
|
||||
* @return the UserRequestPostProcessor for further customizations
|
||||
* @see #roles(String...)
|
||||
*/
|
||||
public UserRequestPostProcessor authorities(Collection<? extends GrantedAuthority> authorities) {
|
||||
this.authorities = authorities;
|
||||
|
||||
+1
-1
@@ -24,8 +24,8 @@ import javax.servlet.Filter;
|
||||
* Provides Security related
|
||||
* {@link org.springframework.test.web.servlet.setup.MockMvcConfigurer} implementations.
|
||||
*
|
||||
* @since 4.0
|
||||
* @author Rob Winch
|
||||
* @since 4.0
|
||||
*/
|
||||
public final class SecurityMockMvcConfigurers {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user