Commit dca463c7 authored by Phillip Webb's avatar Phillip Webb

Polish

parent 66619bbe
...@@ -865,6 +865,7 @@ public class ServerProperties ...@@ -865,6 +865,7 @@ public class ServerProperties
factory.addConnectorCustomizers(new TomcatConnectorCustomizer() { factory.addConnectorCustomizers(new TomcatConnectorCustomizer() {
@Override @Override
@SuppressWarnings("deprecation")
public void customize(Connector connector) { public void customize(Connector connector) {
ProtocolHandler handler = connector.getProtocolHandler(); ProtocolHandler handler = connector.getProtocolHandler();
if (handler instanceof AbstractProtocol) { if (handler instanceof AbstractProtocol) {
......
...@@ -528,7 +528,7 @@ public class ServerPropertiesTests { ...@@ -528,7 +528,7 @@ public class ServerPropertiesTests {
embeddedContainer.start(); embeddedContainer.start();
try { try {
assertThat(((AbstractProtocol<?>) embeddedContainer.getTomcat().getConnector() assertThat(((AbstractProtocol<?>) embeddedContainer.getTomcat().getConnector()
.getProtocolHandler()).getBacklog()).isEqualTo(10); .getProtocolHandler()).getAcceptCount()).isEqualTo(10);
} }
finally { finally {
embeddedContainer.stop(); embeddedContainer.stop();
......
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