Polish "Replace explicit generic type with diamond operator"

Closes gh-15424
This commit is contained in:
Stephane Nicoll 2018-12-09 11:43:28 +01:00
parent a2ebba8db1
commit ba29788482
3 changed files with 3 additions and 5 deletions

View File

@ -257,8 +257,7 @@ public class FreeMarkerAutoConfigurationServletIntegrationTests {
@Bean @Bean
public FilterRegistrationBean<OrderedCharacterEncodingFilter> filterRegistration() { public FilterRegistrationBean<OrderedCharacterEncodingFilter> filterRegistration() {
return new FilterRegistrationBean<>( return new FilterRegistrationBean<>(new OrderedCharacterEncodingFilter());
new OrderedCharacterEncodingFilter());
} }
} }

View File

@ -372,8 +372,7 @@ public class ThymeleafServletAutoConfigurationTests {
@Bean @Bean
public FilterRegistrationBean<OrderedCharacterEncodingFilter> filterRegistration() { public FilterRegistrationBean<OrderedCharacterEncodingFilter> filterRegistration() {
return new FilterRegistrationBean<>( return new FilterRegistrationBean<>(new OrderedCharacterEncodingFilter());
new OrderedCharacterEncodingFilter());
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2017 the original author or authors. * Copyright 2012-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.