From 12185251c1fde727b50a8dd5657e6d2c9bd2d209 Mon Sep 17 00:00:00 2001 From: igor-suhorukov Date: Tue, 13 Mar 2018 00:50:58 +0300 Subject: [PATCH] "toString()" should never be called on a String object Closes gh-12452 --- .../servlet/DispatcherServletsMappingDescriptionProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/mappings/servlet/DispatcherServletsMappingDescriptionProvider.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/mappings/servlet/DispatcherServletsMappingDescriptionProvider.java index 37c46545e9..18f9613b20 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/mappings/servlet/DispatcherServletsMappingDescriptionProvider.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/mappings/servlet/DispatcherServletsMappingDescriptionProvider.java @@ -168,7 +168,7 @@ public class DispatcherServletsMappingDescriptionProvider private DispatcherServletMappingDescription describe( Entry mapping) { - return new DispatcherServletMappingDescription(mapping.getKey().toString(), + return new DispatcherServletMappingDescription(mapping.getKey(), mapping.getValue().toString(), null); }