Merge branch '2.0.x'

This commit is contained in:
Phillip Webb 2018-10-15 14:22:44 -07:00
commit 734e9e4b74
3 changed files with 3 additions and 4 deletions

View File

@ -40,7 +40,7 @@ class MappingWebEndpointPathMapper implements PathMapper {
@Override
public String getRootPath(EndpointId endpointId) {
return this.pathMapping.getOrDefault(endpointId, endpointId.toLowerCaseString());
return this.pathMapping.getOrDefault(endpointId, endpointId.toString());
}
}

View File

@ -50,7 +50,7 @@ public class MappingWebEndpointPathMapperTests {
MappingWebEndpointPathMapper mapper = new MappingWebEndpointPathMapper(
Collections.emptyMap());
assertThat(mapper.getRootPath(EndpointId.of("testEndpoint")))
.isEqualTo("testendpoint");
.isEqualTo("testEndpoint");
}
@Test

View File

@ -41,8 +41,7 @@ public interface PathMapper {
* @return an {@link PathMapper} that uses the lowercase endpoint ID as the path
*/
static PathMapper useEndpointId() {
return (id) -> id.toLowerCaseString();
return (id) -> id.toString();
}
}