Skip to content

Commit

Permalink
Fix warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
sutra committed Nov 27, 2021
1 parent 81bcc97 commit 362435f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public class Application {
* @return the filter registration bean for the {@link CommonsRequestLoggingFilter}.
*/
@Bean
public FilterRegistrationBean commonsRequestLoggingFilterRegistrationBean() {
FilterRegistrationBean registrationBean = new FilterRegistrationBean();
public FilterRegistrationBean<CommonsRequestLoggingFilter> commonsRequestLoggingFilterRegistrationBean() {
FilterRegistrationBean<CommonsRequestLoggingFilter> registrationBean = new FilterRegistrationBean<>();
CommonsRequestLoggingFilter requestLoggingFilter = new CommonsRequestLoggingFilter();
registrationBean.setFilter(requestLoggingFilter);
registrationBean.setOrder(Ordered.HIGHEST_PRECEDENCE);
Expand Down

0 comments on commit 362435f

Please sign in to comment.