Remove superfluous comments
Use '^\s+//\ \~\ .*$' and '^\s+//\ ============+$' regular expression searches to remove superfluous comments. Prior to this commit, many classes would have comments to indicate blocks of code (such as constructors/methods/instance fields). These added a lot of noise and weren't all that helpful, especially given the outline views available in most modern IDEs. Issue gh-8945
This commit is contained in:
@@ -46,17 +46,11 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
@ContextConfiguration(classes = ApacheDsContainerConfig.class)
|
||||
public class SpringSecurityLdapTemplateITests {
|
||||
|
||||
// ~ Instance fields
|
||||
// ================================================================================================
|
||||
|
||||
@Autowired
|
||||
private DefaultSpringSecurityContextSource contextSource;
|
||||
|
||||
private SpringSecurityLdapTemplate template;
|
||||
|
||||
// ~ Methods
|
||||
// ========================================================================================================
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
template = new SpringSecurityLdapTemplate(this.contextSource);
|
||||
|
||||
@@ -45,9 +45,6 @@ import static org.assertj.core.api.Assertions.fail;
|
||||
@ContextConfiguration(classes = ApacheDsContainerConfig.class)
|
||||
public class BindAuthenticatorTests {
|
||||
|
||||
// ~ Instance fields
|
||||
// ================================================================================================
|
||||
|
||||
@Autowired
|
||||
private DefaultSpringSecurityContextSource contextSource;
|
||||
|
||||
@@ -55,9 +52,6 @@ public class BindAuthenticatorTests {
|
||||
|
||||
private Authentication bob;
|
||||
|
||||
// ~ Methods
|
||||
// ========================================================================================================
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
this.authenticator = new BindAuthenticator(this.contextSource);
|
||||
|
||||
@@ -47,9 +47,6 @@ import static org.assertj.core.api.Assertions.*;
|
||||
@ContextConfiguration(classes = ApacheDsContainerConfig.class)
|
||||
public class PasswordComparisonAuthenticatorTests {
|
||||
|
||||
// ~ Instance fields
|
||||
// ================================================================================================
|
||||
|
||||
@Autowired
|
||||
private DefaultSpringSecurityContextSource contextSource;
|
||||
|
||||
@@ -59,9 +56,6 @@ public class PasswordComparisonAuthenticatorTests {
|
||||
|
||||
private Authentication ben;
|
||||
|
||||
// ~ Methods
|
||||
// ========================================================================================================
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
authenticator = new PasswordComparisonAuthenticator(this.contextSource);
|
||||
|
||||
@@ -50,9 +50,6 @@ public class DefaultLdapAuthoritiesPopulatorTests {
|
||||
|
||||
private DefaultLdapAuthoritiesPopulator populator;
|
||||
|
||||
// ~ Methods
|
||||
// ========================================================================================================
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
populator = new DefaultLdapAuthoritiesPopulator(this.contextSource, "ou=groups");
|
||||
|
||||
@@ -58,9 +58,6 @@ public class NestedLdapAuthoritiesPopulatorTests {
|
||||
|
||||
private LdapAuthority circularJavaDevelopers;
|
||||
|
||||
// ~ Methods
|
||||
// ========================================================================================================
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
populator = new NestedLdapAuthoritiesPopulator(this.contextSource, "ou=jdeveloper");
|
||||
|
||||
Reference in New Issue
Block a user