Skip to content

Commit

Permalink
Delete duplicate code block in WebHttpHandlerBuilder.applicationConte…
Browse files Browse the repository at this point in the history
…xt()

This commit deletes a duplicated code block that was accidentally
introduced in a8a1fc6.

Closes gh-25389
  • Loading branch information
sbrannen committed Jul 15, 2020
1 parent 03fa489 commit fcf20ba
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2020 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 Down Expand Up @@ -191,14 +191,6 @@ public static WebHttpHandlerBuilder applicationContext(ApplicationContext contex
// Fall back on default
}

try {
builder.localeContextResolver(
context.getBean(LOCALE_CONTEXT_RESOLVER_BEAN_NAME, LocaleContextResolver.class));
}
catch (NoSuchBeanDefinitionException ex) {
// Fall back on default
}

try {
builder.forwardedHeaderTransformer(
context.getBean(FORWARDED_HEADER_TRANSFORMER_BEAN_NAME, ForwardedHeaderTransformer.class));
Expand Down

0 comments on commit fcf20ba

Please sign in to comment.