Browse Source

Polish

pull/9758/merge
Phillip Webb 9 years ago
parent
commit
dca463c7d9
  1. 1
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java
  2. 2
      spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesTests.java

1
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java

@ -865,6 +865,7 @@ public class ServerProperties @@ -865,6 +865,7 @@ public class ServerProperties
factory.addConnectorCustomizers(new TomcatConnectorCustomizer() {
@Override
@SuppressWarnings("deprecation")
public void customize(Connector connector) {
ProtocolHandler handler = connector.getProtocolHandler();
if (handler instanceof AbstractProtocol) {

2
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesTests.java

@ -528,7 +528,7 @@ public class ServerPropertiesTests { @@ -528,7 +528,7 @@ public class ServerPropertiesTests {
embeddedContainer.start();
try {
assertThat(((AbstractProtocol<?>) embeddedContainer.getTomcat().getConnector()
.getProtocolHandler()).getBacklog()).isEqualTo(10);
.getProtocolHandler()).getAcceptCount()).isEqualTo(10);
}
finally {
embeddedContainer.stop();

Loading…
Cancel
Save