Skip to content

Commit

Permalink
Ensure all files end with a new line
Browse files Browse the repository at this point in the history
Update all files to ensure that they always end with a new-line
character.

Issue spring-projectsgh-8945
  • Loading branch information
philwebb authored and rwinch committed Aug 24, 2020
1 parent 218480f commit 4d487e8
Show file tree
Hide file tree
Showing 64 changed files with 62 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ private static int getServicePort(URL casServiceUrl) {
return port;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ public interface ServiceAuthenticationDetails extends Serializable {
*/
String getServiceUrl();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ public ServiceAuthenticationDetails buildDetails(HttpServletRequest context) {
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ public interface ObjectPostProcessor<T> {
*/
<O extends T> O postProcess(O object);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, B
registry.registerBeanDefinition("annotationSecurityAspect$0", aspect.getBeanDefinition());
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ public String toString() {
private PermitAllSupport() {
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) t
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ public interface UserRepository extends CrudRepository<User, String> {
@PreAuthorize("hasRole('ROLE_ADMIN')")
User findByUsername(String username);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ public TestController testController() {

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ public void validateHttpRedirectSpELNoParserWarning() {
verifyZeroInteractions(this.parserContext);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ public void preAuthorizeAdminRole() {
public void contactPermission(Contact contact) {
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ public void preAuthorizeContactPermissionDenied() {
this.service.contactPermission(new Contact("admin"));
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
@Secured("ROLE_ADMIN")
public @interface SecuredAdminRole {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ public void securedAdminRoleGranted() {
this.service.securedAdminRole();
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ public void methodExpressionHandlerInParentContextLoads() {
this.child.refresh();
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ public Jsr250SecurityConfig(String role) {
super(role);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
*/
String value();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ public InternalAuthenticationServiceException(String message) {
super(message);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ public interface ReactiveAuthenticationManagerResolver<C> {

Mono<ReactiveAuthenticationManager> resolve(C context);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ public AppConfigurationEntry[] getAppConfigurationEntry(String name) {
public void refresh() {
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ protected final Executor getDelegateExecutor() {
return this.delegate;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@
* @since 4.2
*/
package org.springframework.security.jackson2;

/**
* Package contains Jackson mixin classes.
*/
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ public DelegatingSecurityContextTaskExecutor(TaskExecutor delegate) {
this(delegate, null);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ public interface CrudRepository {

Iterable<Object> findAll();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
@PreAuthorize("hasRole('ROLE_PERSON')")
public interface PersonRepository extends CrudRepository {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ protected DelegatingSecurityContextExecutorService create() {
return new DelegatingSecurityContextExecutorService(this.delegate);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ protected DelegatingSecurityContextExecutorService create() {
return new DelegatingSecurityContextExecutorService(this.delegate, this.securityContext);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ protected DelegatingSecurityContextScheduledExecutorService create() {
return new DelegatingSecurityContextScheduledExecutorService(this.delegate, this.securityContext);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ public interface StringKeyGenerator {

String generateKey();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ private SecurityExpressionRoot getRoot() {
return this.securityExtension.getRootObject();
}

}
}
1 change: 0 additions & 1 deletion etc/checkstyle/checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
<suppressions>
<suppress files=".*" checks="NewlineAtEndOfFile" />
<suppress files=".*" checks="NonEmptyAtclauseDescription" />
<suppress files=".*" checks="NoWhitespaceBefore" />
<suppress files=".*" checks="OneTopLevelClass" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ public class StubUserRepository implements UserRepository {
public void doSomething() {
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ public boolean matches(Message<? extends T> message) {
return true;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ public void basicAuthenticationWhenEncodedThenDecodes() {
assertThat(actualCredentials).isEqualToComparingFieldByField(expectedCredentials);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ public SecurityContext createSecurityContext(WithAnonymousUser withUser) {
return context;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ public interface WithSecurityContextFactory<A extends Annotation> {
*/
SecurityContext createSecurityContext(A annotation);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ public String toString() {
return "CustomUserDetails{" + "username='" + this.username + '\'' + '}';
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
@WithMockUser
public class WithMockUserParent {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ public String hello() {

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ public String hello() {

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,4 @@ public UserDetailsService userDetailsServiceBean() throws Exception {

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ public void logout(HttpServletRequest request, HttpServletResponse response, Aut
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,4 @@ public void publishEvent(Object event) {

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ public String toString() {
return getClass().getName() + " [delegateStrategies = " + this.delegateStrategies + "]";
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
filterChain.doFilter(request, response);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ public CsrfException(String message) {
super(message);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ public void logout(HttpServletRequest request, HttpServletResponse response, Aut
this.csrfTokenRepository.saveToken(null, request, response);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ public interface CsrfToken extends Serializable {
*/
String getToken();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ public InvalidCsrfTokenException(CsrfToken expectedAccessToken, String actualAcc
+ "'.");
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ public MissingCsrfTokenException(String actualToken) {
super("Could not verify the provided CSRF token because your session was not found.");
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
* To use, simply add the {@code JaasApiIntegrationFilter} to the Spring Security filter
* chain.
*/
package org.springframework.security.web.jaasapi;
package org.springframework.security.web.jaasapi;
Loading

0 comments on commit 4d487e8

Please sign in to comment.