Polish "Replace explicit generic type with diamond operator"

Closes gh-15424
pull/15427/head
Stephane Nicoll 6 years ago
parent a2ebba8db1
commit ba29788482

@ -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());
} }
} }

@ -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());
} }
} }

@ -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.

Loading…
Cancel
Save