Change log messages to use singular or plural instead of "noun(s)"
See gh-37017
This commit is contained in:
@@ -55,7 +55,9 @@ public class EndpointLinksResolver {
|
||||
public EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints, String basePath) {
|
||||
this.endpoints = endpoints;
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Exposing " + endpoints.size() + " endpoint(s) beneath base path '" + basePath + "'");
|
||||
String suffix = (endpoints.size() == 1) ? "" : "s";
|
||||
logger
|
||||
.info("Exposing " + endpoints.size() + " endpoint" + suffix + " beneath base path '" + basePath + "'");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user