Use consistent modifier order

Update code to use a consistent modifier order that aligns with that
used in the "Java Language specification".

Issue gh-8945
This commit is contained in:
Phillip Webb
2020-07-26 22:52:28 -07:00
committed by Rob Winch
parent 4075595a3f
commit a0b9442265
27 changed files with 83 additions and 86 deletions

View File

@@ -38,7 +38,7 @@ import org.springframework.util.ObjectUtils;
*/
public final class DelegatingMethodSecurityMetadataSource extends AbstractMethodSecurityMetadataSource {
private final static List<ConfigAttribute> NULL_CONFIG_ATTRIBUTE = Collections.emptyList();
private static final List<ConfigAttribute> NULL_CONFIG_ATTRIBUTE = Collections.emptyList();
private final List<MethodSecurityMetadataSource> methodSecurityMetadataSources;

View File

@@ -33,7 +33,7 @@ import static org.mockito.Mockito.when;
*/
public class SecurityExpressionRootTests {
final static Authentication JOE = new TestingAuthenticationToken("joe", "pass", "ROLE_A", "ROLE_B");
static final Authentication JOE = new TestingAuthenticationToken("joe", "pass", "ROLE_A", "ROLE_B");
SecurityExpressionRoot root;

View File

@@ -36,7 +36,7 @@ import static org.assertj.core.api.Assertions.fail;
*/
public class AnonymousAuthenticationTokenTests {
private final static List<GrantedAuthority> ROLES_12 = AuthorityUtils.createAuthorityList("ROLE_ONE", "ROLE_TWO");
private static final List<GrantedAuthority> ROLES_12 = AuthorityUtils.createAuthorityList("ROLE_ONE", "ROLE_TWO");
@Test
public void testConstructorRejectsNulls() {