Skip to content

Commit 734e9e4

Browse files
committed
Merge branch '2.0.x'
2 parents e901a0b + 192340c commit 734e9e4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/MappingWebEndpointPathMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class MappingWebEndpointPathMapper implements PathMapper {
4040

4141
@Override
4242
public String getRootPath(EndpointId endpointId) {
43-
return this.pathMapping.getOrDefault(endpointId, endpointId.toLowerCaseString());
43+
return this.pathMapping.getOrDefault(endpointId, endpointId.toString());
4444
}
4545

4646
}

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/MappingWebEndpointPathMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void mixedCaseDefaultConfiguration() {
5050
MappingWebEndpointPathMapper mapper = new MappingWebEndpointPathMapper(
5151
Collections.emptyMap());
5252
assertThat(mapper.getRootPath(EndpointId.of("testEndpoint")))
53-
.isEqualTo("testendpoint");
53+
.isEqualTo("testEndpoint");
5454
}
5555

5656
@Test

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/PathMapper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ public interface PathMapper {
4141
* @return an {@link PathMapper} that uses the lowercase endpoint ID as the path
4242
*/
4343
static PathMapper useEndpointId() {
44-
return (id) -> id.toLowerCaseString();
45-
44+
return (id) -> id.toString();
4645
}
4746

4847
}

0 commit comments

Comments
 (0)