Avoid limitation of javac's type inferencing

This commit is contained in:
Andy Wilkinson
2017-05-23 22:10:57 +01:00
parent 19a61c6591
commit 7f6081318f

View File

@@ -60,7 +60,7 @@ import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.http.HttpHeaders;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.any;
import static org.mockito.Matchers.anyObject;
import static org.mockito.Mockito.inOrder;
import static org.mockito.Mockito.mock;
@@ -337,7 +337,7 @@ public class JettyEmbeddedServletContainerFactoryTests
}
});
this.thrown.expectCause(instanceOf(IllegalStateException.class));
this.thrown.expectCause(any(IllegalStateException.class));
factory.getEmbeddedServletContainer().start();
}