Skip to content

Commit

Permalink
Polish remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kse-music committed Jan 8, 2025
1 parent fe9edc8 commit 404296e
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,6 @@

import jakarta.servlet.Filter;

import org.springframework.beans.factory.BeanClassLoaderAware;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
Expand Down Expand Up @@ -65,20 +64,16 @@
* @see WebSecurity
*/
@Configuration(proxyBeanMethods = false)
public class WebSecurityConfiguration implements ImportAware, BeanClassLoaderAware {
public class WebSecurityConfiguration implements ImportAware {

private WebSecurity webSecurity;

private Boolean debugEnabled;

private List<SecurityConfigurer<Filter, WebSecurity>> webSecurityConfigurers;

private List<SecurityFilterChain> securityFilterChains = Collections.emptyList();

private List<WebSecurityCustomizer> webSecurityCustomizers = Collections.emptyList();

private ClassLoader beanClassLoader;

@Autowired(required = false)
private HttpSecurity httpSecurity;

Expand Down Expand Up @@ -164,7 +159,6 @@ public void setFilterChainProxySecurityConfigurer(ObjectPostProcessor<Object> ob
for (SecurityConfigurer<Filter, WebSecurity> webSecurityConfigurer : webSecurityConfigurers) {
this.webSecurity.apply(webSecurityConfigurer);
}
this.webSecurityConfigurers = webSecurityConfigurers;
}

@Autowired(required = false)
Expand Down Expand Up @@ -193,11 +187,6 @@ public void setImportMetadata(AnnotationMetadata importMetadata) {
}
}

@Override
public void setBeanClassLoader(ClassLoader classLoader) {
this.beanClassLoader = classLoader;
}

/**
* A custom version of the Spring provided AnnotationAwareOrderComparator that uses
* {@link AnnotationUtils#findAnnotation(Class, Class)} to look on super class
Expand Down

0 comments on commit 404296e

Please sign in to comment.