Merge pull request #16265 from dreis2211

* pr/16265:
  Remove explicit types
pull/16275/head
Stephane Nicoll 6 years ago
commit a3908d0644

@ -97,8 +97,7 @@ public class JerseyAutoConfigurationTests {
@Bean
public FilterRegistrationBean<RequestContextFilter> customRequestContextFilterRegistration() {
return new FilterRegistrationBean<RequestContextFilter>(
new RequestContextFilter());
return new FilterRegistrationBean<>(new RequestContextFilter());
}
}

@ -1276,8 +1276,7 @@ public class WebMvcAutoConfigurationTests {
@Bean
public FilterRegistrationBean<RequestContextFilter> customRequestContextFilterRegistration() {
return new FilterRegistrationBean<RequestContextFilter>(
new RequestContextFilter());
return new FilterRegistrationBean<>(new RequestContextFilter());
}
}

@ -48,7 +48,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
public class DataNeo4jTestIntegrationTests {
@ClassRule
public static SkippableContainer<Neo4jContainer<?>> neo4j = new SkippableContainer<Neo4jContainer<?>>(
public static SkippableContainer<Neo4jContainer<?>> neo4j = new SkippableContainer<>(
() -> new Neo4jContainer<>().withAdminPassword(null));
@Autowired

@ -44,7 +44,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class DataNeo4jTestPropertiesIntegrationTests {
@ClassRule
public static SkippableContainer<Neo4jContainer<?>> neo4j = new SkippableContainer<Neo4jContainer<?>>(
public static SkippableContainer<Neo4jContainer<?>> neo4j = new SkippableContainer<>(
() -> new Neo4jContainer<>().withAdminPassword(null));
@Autowired

@ -45,7 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class DataNeo4jTestWithIncludeFilterIntegrationTests {
@ClassRule
public static SkippableContainer<Neo4jContainer<?>> neo4j = new SkippableContainer<Neo4jContainer<?>>(
public static SkippableContainer<Neo4jContainer<?>> neo4j = new SkippableContainer<>(
() -> new Neo4jContainer<>().withAdminPassword(null));
@Autowired

Loading…
Cancel
Save