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 { ...@@ -762,12 +762,12 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
@Test @Test
public void portClashOfPrimaryConnectorResultsInPortInUseException() public void portClashOfPrimaryConnectorResultsInPortInUseException()
throws IOException { throws IOException {
AbstractEmbeddedServletContainerFactory factory = getFactory();
doWithBlockedPort(new BlockedPortAction() { doWithBlockedPort(new BlockedPortAction() {
@Override @Override
public void run(int port) { public void run(int port) {
try { try {
AbstractEmbeddedServletContainerFactory factory = getFactory();
factory.setPort(port); factory.setPort(port);
AbstractEmbeddedServletContainerFactoryTests.this.container = factory AbstractEmbeddedServletContainerFactoryTests.this.container = factory
.getEmbeddedServletContainer(); .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