From 5b0f22e8fe2d18dd76adb0f16200f64b8239d391 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 24 Aug 2020 12:12:33 +0200 Subject: [PATCH] Fix unintended import on commons lang Closes gh-23059 --- .../web/embedded/UndertowWebServerFactoryCustomizer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/UndertowWebServerFactoryCustomizer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/UndertowWebServerFactoryCustomizer.java index 8f644fb987..fc4247305c 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/UndertowWebServerFactoryCustomizer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/UndertowWebServerFactoryCustomizer.java @@ -26,7 +26,6 @@ import java.util.function.Consumer; import java.util.function.Function; import io.undertow.UndertowOptions; -import org.apache.commons.lang.ClassUtils; import org.xnio.Option; import org.xnio.Options; @@ -40,6 +39,7 @@ import org.springframework.boot.web.server.WebServerFactoryCustomizer; import org.springframework.core.Ordered; import org.springframework.core.env.Environment; import org.springframework.util.Assert; +import org.springframework.util.ClassUtils; import org.springframework.util.ReflectionUtils; import org.springframework.util.unit.DataSize; @@ -170,7 +170,7 @@ public class UndertowWebServerFactoryCustomizer map.forEach((key, value) -> { Option option = (Option) this.nameLookup.get(getCanonicalName(key)); Assert.state(option != null, - "Unable to find '" + key + "' in " + ClassUtils.getShortClassName(this.source)); + "Unable to find '" + key + "' in " + ClassUtils.getShortName(this.source)); T parsed = option.parseValue(value, getClass().getClassLoader()); function.apply(option).accept(parsed); });