Skip to content

Commit ec2e93b

Browse files
Drop unused properties obj
1 parent 1f873e5 commit ec2e93b

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

problem4j-spring-webflux/src/main/java/io/github/problem4j/spring/webflux/autoconfigure/ProblemErrorWebFluxConfiguration.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@
4949
@Configuration(proxyBeanMethods = false)
5050
class ProblemErrorWebFluxConfiguration {
5151

52-
private final WebProperties webProperties;
53-
54-
ProblemErrorWebFluxConfiguration(WebProperties webProperties) {
55-
this.webProperties = webProperties;
56-
}
57-
5852
/**
5953
* Registers a default {@link ErrorAttributes} bean if none is already defined.
6054
*
@@ -91,7 +85,7 @@ ErrorWebExceptionHandler problemErrorWebExceptionHandler(
9185
problemPostProcessor,
9286
errorAttributes,
9387
webProperties.getResources(),
94-
this.webProperties.getError(),
88+
webProperties.getError(),
9589
applicationContext);
9690
exceptionHandler.setViewResolvers(viewResolvers.orderedStream().toList());
9791
exceptionHandler.setMessageWriters(serverCodecConfigurer.getWriters());

0 commit comments

Comments
 (0)