Commit 0968d411 authored by Phillip Webb's avatar Phillip Webb

Fix reference to non-final field

parent fa18d2cc
......@@ -762,12 +762,12 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
@Test
public void portClashOfPrimaryConnectorResultsInPortInUseException()
throws IOException {
AbstractEmbeddedServletContainerFactory factory = getFactory();
doWithBlockedPort(new BlockedPortAction() {
@Override
public void run(int port) {
try {
AbstractEmbeddedServletContainerFactory factory = getFactory();
factory.setPort(port);
AbstractEmbeddedServletContainerFactoryTests.this.container = factory
.getEmbeddedServletContainer();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment