Skip to content

Commit

Permalink
Avoid compiler warning that only occurs with Java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Jan 19, 2021
1 parent 294231e commit 743343c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -78,8 +78,8 @@ void whenAnHttpSessionIdListenerBeanIsDefinedThenARegistrationBeanIsCreatedForIt
this.context.getBeanFactory());
assertThat(initializerBeans).hasSize(1);
assertThat(initializerBeans).first().isInstanceOf(ServletListenerRegistrationBean.class)
.extracting(ServletListenerRegistrationBean.class::cast)
.extracting(ServletListenerRegistrationBean::getListener).isInstanceOf(HttpSessionIdListener.class);
.extracting((initializer) -> ((ServletListenerRegistrationBean<?>) initializer).getListener())
.isInstanceOf(HttpSessionIdListener.class);
}

private void load(Class<?>... configuration) {
Expand Down

0 comments on commit 743343c

Please sign in to comment.