From dca463c7d95a1e1aad40e4d1f26d6366545a7625 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 24 Jul 2017 12:53:55 -0700 Subject: [PATCH] Polish --- .../boot/autoconfigure/web/ServerProperties.java | 1 + .../boot/autoconfigure/web/ServerPropertiesTests.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java index 5fa0645b0a..f15dc35a42 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java @@ -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) { diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesTests.java index 96e1576b97..205283fc51 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesTests.java @@ -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();